View source: R/plot-distributions.R
| plot_centrality_distribution | R Documentation |
Histogram or density plot of one centrality measure. The input is either
the data frame returned by centrality or a network, for
which the measure is computed first.
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. Column of the centrality output to plot, for
example |
type |
Character. |
normalize |
Logical. Show proportions instead of counts. Default FALSE. |
bins |
Integer or NULL. Number of equal-width histogram bins. The default NULL uses the Freedman-Diaconis rule. |
log |
Character. |
col |
Fill color (line color for the density). Default
|
border |
Bar border color for the histogram. Default |
main |
Plot title. The default NULL builds a title such as
|
xlab |
X-axis label. The default NULL uses the measure name. |
... |
Additional arguments passed to |
Invisibly, a numeric vector of the finite centrality values plotted.
cograph::plot_centrality_distribution(regulation_net, measure = "strength_all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.