Description Usage Arguments Details Value See Also Examples
View source: R/plotFunctions.R
An easy wrapper for plotting the same network at different levels of a
moderator. Using the mval argument of the fitNetwork
function, you can create multiple models—conditional networks—wherein the
same model is fit at different values of the moderator.
| 1 2 3 4 5 6 7 8 9 10 11 | 
| nets | List of network models fit with  | 
| nodewise | See corresponding argument in  | 
| elsize | Numeric value to indicate the size of the edge labels. | 
| vsize | Numeric value to indicate the size of the nodes. If  | 
| elabs | If  | 
| predict | See corresponding argument in  | 
| layout | Can be a character string, corresponding to the options in
 | 
| which.net | See corresponding argument in  | 
| ... | Additional arguments. | 
Importantly, this function will fix a common layout across all conditional networks so that the network can be easily compared (visually) at different levels of the moderator.
Returns a plot where multiple conditional networks are plotted side by side.
| 1 2 3 4 5 6 7 8 | data <- na.omit(psychTools::msq[, c('hostile', 'lonely', 'nervous', 'sleepy', 'depressed')])
fit0 <- fitNetwork(data, moderators = 'depressed', mval = 0)
fit1 <- fitNetwork(data, moderators = 'depressed', mval = 1)
fit2 <- fitNetwork(data, moderators = 'depressed', mval = 2)
fits <- list(fit0, fit1, fit2)
plotMods(fits)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.