Learn R Programming

networktools (version 1.1.0)

plot.structure.impact: Plot "structure.impact" objects

Description

Convenience function for generating network structure impact plots

Usage

# S3 method for structure.impact
plot(x, order = c("given", "alphabetical",
  "value"), zscore = FALSE, abs_val = FALSE, ...)

Arguments

x

an output object from an impact function (class structure.impact)

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

abs_val

logical. Plot absolute values of network structure impacts. If both abs_val=TRUE and zscore=TRUE, plots the absolute value of the z-scores.

...

other plotting specifications (ggplot2)

Details

Inputting an object of class network.impact will return a line plot that shows the relative network impacts of each node.

Examples

Run this code
# NOT RUN {
out <- structure.impact(depression[,1:5])
plot(out)
# }
# NOT RUN {
out1 <- structure.impact(depression)
plot(out1)
plot(out1, order="value", zscore=TRUE)
out2 <- impact(depression)
plot(out2$Network.Structure)
# }

Run the code above in your browser using DataLab