Learn R Programming

intensitynet (version 1.3.1)

PlotHeatmap.intensitynet: Plot the network correlations or intensities.

Description

Plot the network correlations or intensities.

Usage

# S3 method for intensitynet
PlotHeatmap(
  obj,
  heat_type = "none",
  intensity_type = "none",
  net_vertices = NULL,
  net_edges = NULL,
  show_events = FALSE,
  alpha = 1,
  ...
)

Value

The plot of the heatmap with class c("gg", "ggplot")

Arguments

obj

intensitynet object

heat_type

a string with the desired heatmap to be plotted, the options are; 'moran': Local Moran-i correlation (with 999 permutations), 'geary': Local Geary-c correlation. The correlations will use the indicated intensity type, 'v_intensity': vertex mean intensity, 'e_intensity': edge intensity, mark name: name of the mark (string) to plot its edge proportion, 'none': plain map.

intensity_type

name of the vertex intensity used to plot the heatmap for moran, geary and v_intensity options (of the heat_type argument). The options are; For undirected networks: 'intensity'. For directed networks: 'intensity_in' or 'intensity_out'. For mixed networks: 'intensity_in', 'intensity_out', 'intensity_und' or 'intensity_all'. If the intensity parameter is 'none', the function will use, if exist, the intensity (undirected) or intensity_in (directed) values from the network nodes. If the heat_type is 'e_intensity', this parameter will be skipped and plot the edge intensities instead.

net_vertices

chosen vertices to plot the heatmap

net_edges

chosen edges to plot the heatmap, can be either the edge id's or its node endpoints (e.j. c(1,2, 2,3, 7,8))

show_events

option to show the events as orange squares, FALSE by default

alpha

optional argument to set the transparency of the events (show_events = TRUE). The range is from 0.1 (transparent) to 1 (opaque). Default: alpha = 1

...

extra arguments for the class ggplot

Examples

Run this code

if (FALSE) {
data("und_intnet_chicago")
PlotHeatmap(und_intnet_chicago, heat_type='moran')
}

Run the code above in your browser using DataLab