
Last chance! 50% off unlimited learning
Sale ends in
Convenience function for plotting bridge centrality
# S3 method for bridge
plot(
x,
order = c("given", "alphabetical", "value"),
zscore = FALSE,
include,
color = FALSE,
colpalette = "Dark2",
plotNA = FALSE,
...
)
an output object from bridge
(class bridge
)
"alphabetical" orders nodes alphabetically, "value" orders nodes from highest to lowest centrality values
logical. Converts raw impact statistics to z-scores for plotting
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
logical. Color each community separately in the plot?
A palette name from RColorBrewer, for coloring of axis labels
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
# \donttest{
b <- bridge(cor(depression))
plot(b)
plot(b, order="value", zscore=TRUE,include=c("Bridge Strength", "Bridge Betweenness"))
# }
Run the code above in your browser using DataLab