Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.bridge

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

Tools for Identifying Important Nodes in Networks

v1.2.3
GPL-3
Authors
Payton Jones [aut, cre]
Initial release
2020-4-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.