Plots the centrality measures of a tna_centralities object as a
lollipop chart. The resulting plot includes facets for each centrality
measure, showing the values for each state. The returned plot is a
ggplot2 object, so it can be easily modified and styled. See
centralities() for details on the centrality measures.
Arguments
- x
An object of class
tna_centralities.- reorder
A
logicalvalue indicating whether to reorder the values for each centrality in a descending order. The default isTRUE.- ncol
Number of columns to use for the facets. The default is 3.
- scales
Either
"fixed"or"free_x"(the default). If"free_x", the horizontal axis is scaled individually in each facet. If"fixed", the same values are used for all axes.- colors
The colors for each node (default is the model colors if the
tnamodel object is passed, otherwise"black").- labels
A
logicalvalue indicating whether to show the centrality numeric values. The default isTRUE.- ...
Ignored.
See also
Centrality measure functions
betweenness_network(),
centralities(),
plot.group_tna_centralities(),
print.group_tna_centralities(),
print.tna_centralities()
Examples
tna_model <- tna(group_regulation)
cm <- centralities(tna_model)
plot(cm, ncol = 3, reorder = TRUE)
