powered by
Histogram of edge weights in a network.
plot_edge_weights( x, normalize = FALSE, bins = NULL, log = "", directed = NULL, col = "steelblue", border = "white", main = "Edge Weight Distribution", xlab = "Weight", ... )
Invisibly returns the weight vector.
Network input: matrix, igraph, network, cograph_network, or tna.
Logical. Show proportions. Default FALSE.
Integer or NULL. Number of bins. Default NULL (auto).
Character. Log scaling. Default "".
""
Logical or NULL. Default NULL (auto-detect).
Fill color. Default "steelblue".
"steelblue"
Border color. Default "white".
"white"
Title. Default "Edge Weight Distribution".
"Edge Weight Distribution"
X-axis label. Default "Weight".
"Weight"
Additional arguments passed to barplot.
barplot
adj <- matrix(c(0, 2, 3, 2, 0, 1, 3, 1, 0), 3, 3) rownames(adj) <- colnames(adj) <- c("A", "B", "C") cograph::plot_edge_weights(adj)
Run the code above in your browser using DataLab