Histogram or density plot of any centrality measure. Accepts the output
of centrality directly.
Usage
plot_centrality_distribution(
x,
measure = "degree_all",
type = c("histogram", "density"),
normalize = FALSE,
bins = NULL,
log = "",
col = "steelblue",
border = "white",
main = NULL,
xlab = NULL,
...
)Arguments
- x
A data frame from
centrality, or a network input (matrix, igraph, cograph_network, tna).- measure
Character. Which centrality measure to plot. Default
"degree_all". Must match a column name in the centrality output.- type
Character.
"histogram"(default) or"density".- normalize
Logical. Show proportions instead of counts. Default FALSE.
- bins
Integer or NULL. Number of bins. Default NULL (auto).
- log
Character. Log scaling:
"","x","y", or"xy". Default"".- col
Fill color. Default
"steelblue".- border
Border color. Default
"white".- main
Plot title. Default auto-generated from measure name.
- xlab
X-axis label. Default auto-generated.
- ...

