View source: R/centrality_measures.R
| plot.net_edge_betweenness | R Documentation |
Draws the edges of a net_edge_betweenness network ranked by
their betweenness, as a horizontal bar chart. This is the tidy,
cograph-free companion to the node-link diagram: render the diagram with
cograph::splot(eb) and the ranking with plot(eb).
## S3 method for class 'net_edge_betweenness'
plot(x, style = c("bar", "forest", "delta"), top_n = NULL, labels = TRUE, ...)
x |
A |
style |
Plot style. |
top_n |
Integer or |
labels |
Logical. Print the betweenness value beside each edge.
Default |
... |
Additional arguments (ignored). |
A ggplot object.
seqs <- data.frame(
V1 = c("A","B","A","C"), V2 = c("B","C","B","A"),
V3 = c("C","A","C","B"))
eb <- net_edge_betweenness(build_network(seqs, method = "relative"))
plot(eb)
plot(eb, style = "forest")
plot(eb, style = "delta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.