plot.tna_centralities | R Documentation |
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.
## S3 method for class 'tna_centralities'
plot(
x,
reorder = TRUE,
ncol = 3,
scales = c("free_x", "fixed"),
colors,
labels = TRUE,
...
)
x |
An object of class |
reorder |
A |
ncol |
Number of columns to use for the facets. The default is 3. |
scales |
Either |
colors |
The colors for each node (default is the model colors
if the |
labels |
A |
... |
Ignored. |
A ggplot
object displaying the lollipop charts for each centrality
measure.
Centrality measure functions
betweenness_network()
,
centralities()
,
plot.group_tna_centralities()
,
print.group_tna_centralities()
,
print.tna_centralities()
tna_model <- tna(group_regulation)
cm <- centralities(tna_model)
plot(cm, ncol = 3, reorder = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.