plot.tna {tna} | R Documentation |
Plot a Transition Network Analysis Model
Description
This function plots a transition network analysis (TNA) model using
the qgraph
package. The nodes in the graph represent states, with node
sizes corresponding to initial state probabilities. Edge labels represent
the edge weights of the network.
Usage
## S3 method for class 'tna'
plot(
x,
labels,
colors,
pie,
cut,
show_pruned = TRUE,
pruned_edge_color = "pink",
edge.color = NA,
edge.labels = TRUE,
edge.label.position = 0.65,
layout = "circle",
layout_args = list(),
scale_nodes,
scaling_factor = 0.5,
mar = rep(5, 4),
theme = "colorblind",
...
)
Arguments
x |
A |
labels |
See |
colors |
See |
pie |
See |
cut |
Edge color and width emphasis cutoff value. The default is
the median of the edge weights. See |
show_pruned |
A |
pruned_edge_color |
A |
edge.color |
See |
edge.labels |
See |
edge.label.position |
See |
layout |
One of the following:
|
layout_args |
A |
scale_nodes |
A |
scaling_factor |
A |
mar |
See |
theme |
See |
... |
Additional arguments passed to |
Value
A qgraph
plot of the transition network.
See Also
Basic functions
build_model()
,
hist.group_tna()
,
hist.tna()
,
plot.group_tna()
,
plot_frequencies()
,
plot_frequencies.group_tna()
,
plot_mosaic()
,
plot_mosaic.group_tna()
,
plot_mosaic.tna_data()
,
print.group_tna()
,
print.summary.group_tna()
,
print.summary.tna()
,
print.tna()
,
summary.group_tna()
,
summary.tna()
,
tna-package
Examples
model <- tna(group_regulation)
plot(model)