View source: R/summary_print_plot.R
plot.expectedInf | R Documentation |
Convenience function for plotting expected influence
## S3 method for class 'expectedInf'
plot(x, order = c("given", "alphabetical", "value"), zscore = TRUE, ...)
x |
an output object from an |
order |
"alphabetical" orders nodes alphabetically, "value" orders nodes from highest to lowest impact value |
zscore |
logical. Converts raw impact statistics to z-scores for plotting |
... |
other plotting specifications (ggplot2) |
Inputting an object of class expectedInf
will return a line plot that shows the relative one-step and/or two-step
expected influence of each node.
myNetwork <- cor(depression[,1:5])
out1 <- expectedInf(myNetwork)
plot(out1$step1)
plot(out1, order="value", zscore=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.