Learn R Programming

networktools (version 1.4.0)

plot.global.impact: Plot "global.impact" objects

Description

Convenience function for generating global strength impact plots

Usage

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

Arguments

x

an output object from an impact function (class global.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 global strength 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 global.impact will return a line plot that shows the relative global impacts of each node.