View source: R/plot-distributions.R
| plot_edge_weights | R Documentation |
Histogram of edge weights in a network. The number of edges and the mean and standard deviation of the weights are printed in the top margin.
plot_edge_weights(
x,
normalize = FALSE,
bins = NULL,
log = "",
directed = NULL,
col = "steelblue",
border = "white",
main = "Edge Weight Distribution",
xlab = "Weight",
...
)
x |
Network input: matrix, igraph, network, cograph_network, or tna. |
normalize |
Logical. Show proportions. Default FALSE. |
bins |
Integer or NULL. Number of equal-width bins. With the default NULL, integer weights spanning at most 30 units get one bin per integer and other weights use the Freedman-Diaconis rule. |
log |
Character. |
directed |
Logical or NULL. Default NULL (auto-detect). |
col |
Fill color. Default |
border |
Border color. Default |
main |
Title. Default |
xlab |
X-axis label. Default |
... |
Additional arguments passed to |
Invisibly, a numeric vector of edge weights (all 1 for an unweighted network).
cograph::plot_edge_weights(regulation_net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.