plot_troph_level: Plot ecological network organized by trophic level, with node...

Description Usage Arguments Value Examples

View source: R/plotNetwork.r

Description

Plot ecological network organized by trophic level, with node size determined by the node degree, and modules.

Usage

1
2
3
plot_troph_level(g, vertexLabel = FALSE, vertexSizeFactor = 5,
  tk = FALSE, modules = FALSE, lMat = NULL, weights = NA,
  bpal = NULL, maxTL = NULL, edge.width = NULL, ...)

Arguments

vertexLabel

logical plot vertex labels

vertexSizeFactor

numeric factor to determine the size of the label with degree

tk

TRUE generate an interactive plot using tkplot and returns a matrix with coordinates from igraph::tkplot.getcoords()

modules

if TRUE plot modules in the x axis, obtained with the cluster spinglass algorithm

lMat

Matrix of postions for the nodes

weights

The weights of the edges for the igraph::cluster_spinglass() community detection, either a numeric vector, NULL, or NA. if NULL and the network has a 'weight' attribute then that will be used, if NA then the 'weight' attributte is not considered.

bpal

if NULL it uses the "RdYlGn" RColorBrewer palette, else must be a vector of colors of length 11.

maxTL

maximum trophic level to draw y-axis

edge.width

if NULL edge width is fixed in 0.3, if numberic takes into account edge weights multiplied by this value to draw edge widths, the parameter weights determine the behavior.

...

Addittional parameters to the plot function

ig

igraph object

Value

returns a plot and if tk==TRUE returns a layout matrix

Examples

1

lsaravia/EcoNetwork documentation built on Oct. 26, 2020, 11:09 p.m.