Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.expectedInf

Plot "expectedInf" objects


Description

Convenience function for plotting expected influence

Usage

## S3 method for class 'expectedInf'
plot(x, order = c("given", "alphabetical",
  "value"), zscore = TRUE, ...)

Arguments

x

an output object from an expectedInf (class expectedInf)

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)

Details

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.

Examples

myNetwork <- cor(depression[,1:5])
out1 <- expectedInf(myNetwork)
plot(out1$step1)

plot(out1, order="value", zscore=TRUE)

networktools

Tools for Identifying Important Nodes in Networks

v1.2.3
GPL-3
Authors
Payton Jones [aut, cre]
Initial release
2020-4-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.