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 |
whichNets |
Vector of length 2 indicating which networks to plot.
|
whichTemp |
Which version of the temporal network should be plotted,
either |
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
Examples
x <- fitNetwork(gvarDat, lags = TRUE)
plotNet2(x)