View source: R/plot-distributions.R
| plot_centrality_distribution | R Documentation |
Histogram or density plot of any centrality measure. Accepts the output
of centrality directly.
plot_centrality_distribution(
x,
measure = "degree_all",
type = c("histogram", "density"),
normalize = FALSE,
bins = NULL,
log = "",
col = "steelblue",
border = "white",
main = NULL,
xlab = NULL,
...
)
x |
A data frame from |
measure |
Character. Which centrality measure to plot. Default
|
type |
Character. |
normalize |
Logical. Show proportions instead of counts. Default FALSE. |
bins |
Integer or NULL. Number of bins. Default NULL (auto). |
log |
Character. Log scaling: |
col |
Fill color. Default |
border |
Border color. Default |
main |
Plot title. Default auto-generated from measure name. |
xlab |
X-axis label. Default auto-generated. |
... |
Additional arguments passed to |
Invisibly returns the centrality values plotted.
adj <- matrix(c(0,1,1,0, 1,0,1,1, 1,1,0,1, 0,1,1,0), 4, 4)
rownames(adj) <- colnames(adj) <- LETTERS[1:4]
cograph::plot_centrality_distribution(adj, measure = "degree_all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.