Learn R Programming

networktools (version 1.1.0)

plot.bridge: Plot "bridge" objects

Description

Convenience function for plotting bridge centrality

Usage

# S3 method for bridge
plot(x, order = c("given", "alphabetical", "value"),
  zscore = FALSE, include, ...)

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

...

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

Run this code
# NOT RUN {
b <- bridge(cor(depression))
plot(b)
plot(b, order="value", zscore=TRUE)
plot(b, include=c("Bridge Strength", "Bridge Betweenness"))
# }

Run the code above in your browser using DataLab