plotNet2 {modnets}R Documentation

Plot temporal and contemporaneous networks in the same window

Description

Designed for easy-to-use plotting with temporal networks. Essentially just a wrapper for running plotNet twice—once for a temporal network, and again for a contemporaneous network—and plotting the two networks in the same window. Good for a quick glance at results from a SUR network. Also compatible with mlGVAR and lmerVAR outputs, although can only plot two networks in the same window. plotNet3 can be used to plot 3 networks.

Usage

plotNet2(
  object,
  whichNets = NULL,
  whichTemp = c("temporal", "PDC"),
  titles = c("PDC ", "PCC "),
  ...
)

Arguments

object

Output from fitNetwork, specifically with a SUR model.

whichNets

Vector of length 2 indicating which networks to plot. "beta" and "temporal" both refer to the unstandardized temporal network coefficients, while "PDC" refers to the standardized temporal network. "PCC" and "contemporaneous" both refer to the standardized residual covariance matrix (the contemporaneous network). If the object is fitted with mlGVAR or lmerVAR, then "between" is also an option for plotting the between-subjects network.

whichTemp

Which version of the temporal network should be plotted, either "temporal" or "PDC". This argument is ignored if whichNets is not NULL.

titles

Character vector of length 2 where custom names for the two network plots can be supplied.

...

Additional arguments.

Value

Returns two network plots side by side.

See Also

fitNetwork

Examples

x <- fitNetwork(gvarDat, lags = TRUE)
plotNet2(x)

[Package modnets version 0.9.0 Index]