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.
A ggplot object displaying the lollipop charts for each centrality
measure.
Arguments
x
An object of class tna_centralities.
reorder
A logical value indicating whether to reorder the values
for each centrality in a descending order. The default is TRUE.
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 tna model object is passed, otherwise "black").
labels
A logical value indicating whether to show the centrality
numeric values. The default is TRUE.