plotNetwork: plotNetwork

Description Usage Arguments Value Examples

Description

Plots a network diagram of the output of an EMMLi analysis. Nodes are proportionally sized to within-module rho, and lines are larger and darker according to between-module rho.

Usage

1
2
plotNetwork(rhos, module_names = NULL, linecolour = "#56B4E9",
  title = NULL, layout = NULL)

Arguments

rhos

The rhos that come out of an EMMLi analysis

module_names

The names of the modules - if absent generic numbers are used. If "rhos" then the nodes are named with the within-module rho.

linecolour

The colour of the joining lines. If a single colour, then lines will be that colour with width and transparency adjusted to the strength of the correlation. If "viridis" then lines are coloured according to the viridis colour palette, with darker colours corresponding to stronger correlations.

title

Title for the plot.

layout

A matrix describing the positions of each module on the canvas. See qgraph for details.

Value

A plotted network of the relationships between and within modules.

Examples

1
2
3
4
data("macacaCorrel")
data("macacaModels")
emm <- EMMLi(corr = macacaCorrel, mod = macacaModels, N_sample = 20)
plotNetwork(emm$rho[[1]], linecolour = "viridis")

hferg/EMMLiv2 documentation built on May 28, 2019, 8:55 p.m.