plot.bridge: Plot "bridge" objects

View source: R/summary_print_plot.R

plot.bridgeR Documentation

Plot "bridge" objects

Description

Convenience function for plotting bridge centrality

Usage

## S3 method for class 'bridge'
plot(
  x,
  order = c("given", "alphabetical", "value"),
  zscore = FALSE,
  include,
  color = FALSE,
  colpalette = "Dark2",
  plotNA = FALSE,
  ...
)

Arguments

x

an output object from bridge (class bridge)

order

"alphabetical" orders nodes alphabetically, "value" orders nodes from highest to lowest centrality values

zscore

logical. Converts raw impact statistics to z-scores for plotting

include

a vector of centrality measures to include ("Bridge Strength", "Bridge Betweenness", "Bridge Closeness", "Bridge Expected Influence (1-step)", "Bridge Expected Influence (2-step)"), if missing all available measures will be plotted

color

logical. Color each community separately in the plot?

colpalette

A palette name from RColorBrewer, for coloring of axis labels

plotNA

should nodes with NA values be included on the y axis?

...

other plotting specifications in ggplot2 (aes)

Details

Inputting an object of class bridge will return a line plot that shows the bridge centrality values of each node

Examples


b <- bridge(cor(depression))
plot(b)
plot(b, order="value", zscore=TRUE,include=c("Bridge Strength", "Bridge Betweenness"))


networktools documentation built on Aug. 23, 2023, 1:06 a.m.