| plot_robustness | R Documentation |
Plots the fraction of nodes remaining in the largest connected component against the fraction of nodes or edges removed, with one line per attack strategy, in base graphics.
plot_robustness(
...,
x = NULL,
measures = c("betweenness", "degree", "random"),
colors = NULL,
title = "Network Robustness: sequential removal of nodes",
xlab = "Fraction of removed nodes",
ylab = "Fraction of remaining nodes",
lwd = 1.5,
legend_pos = "topright",
n_iter = 1000,
seed = NULL,
type = "vertex"
)
... |
One or more robustness results from |
x |
Network on which robustness is computed for each of
|
measures |
Character vector of attack strategies to compare when
|
colors |
Vector of colors named by measure ( |
title |
Plot title. Default "Network Robustness: sequential removal of nodes". |
xlab |
X-axis label. Default "Fraction of removed nodes". |
ylab |
Y-axis label. Default "Fraction of remaining nodes". |
lwd |
Line width. Default 1.5. |
legend_pos |
Legend position. Default "topright". |
n_iter |
Number of iterations for random removal when |
seed |
Random seed. Default NULL. |
type |
Removal type, "vertex" or "edge", when |
Invisibly, a cograph_robustness data frame that stacks the
plotted results (columns as in robustness).
plot_robustness(x = regulation_net, n_iter = 20, seed = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.