Plot "bridge" objects
Convenience function for plotting bridge centrality
## S3 method for class 'bridge' plot(x, order = c("given", "alphabetical", "value"), zscore = FALSE, include, color = FALSE, colpalette = "Dark2", plotNA = FALSE, ...)
x |
an output object from |
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) |
Inputting an object of class bridge
will return a line plot that shows the bridge centrality
values of each node
b <- bridge(cor(depression)) plot(b) plot(b, order="value", zscore=TRUE,include=c("Bridge Strength", "Bridge Betweenness"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.