plotNet2 function

Plot temporal and contemporaneous networks in the same window

Plot temporal and contemporaneous networks in the same window

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.

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.

Returns

Returns two network plots side by side.

Examples

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

See Also

fitNetwork

  • Maintainer: Trevor Swanson
  • License: GPL (>= 3)
  • Last published: 2021-10-01