plot_transitions() draws a lag transition network with cograph: the
states are nodes and the transitions between them directed edges. Which
quantity weights the edges decides what the network shows. Weighted by
adjusted residuals it is a residual network: edges show where a transition is
more frequent (over-represented) or less frequent (avoided) than independence
predicts, the reading of lag sequential analysis. Weighted by transition
probabilities it is the network of Transition Network Analysis, which shows
where the process goes next, whether or not that is more than chance.
With weights = "residuals" (default), over-represented transitions are
solid blue edges and avoided transitions dashed red edges; "yules_q" draws
the same signed network on the bounded Yule's Q scale, and "lift" the ratio
of observed to expected counts. With "prob" (or its aliases "tna" and
"relative") or "count", the network is drawn in the style of Transition
Network Analysis, each node ringed by its initial-state probability;
probability edges below 0.05 are hidden unless edge_cutoff is passed. Dense
networks are thinned with significant or, better at large sample sizes
where nearly every cell is significant, with top.
The same display is plot(fit, type = "network"). For the full table
use the residual heatmap of plot.lsa(); for the per-source breakdown,
plot_chords() or plot_polar().
Usage
plot_transitions(
fit,
weights = c("residuals", "tna", "relative", "count", "prob", "lift", "yules_q"),
significant = FALSE,
top = NULL,
decimals = 1,
node_fill = "white",
edge_labels = TRUE,
...
)Arguments
- fit
An
lsafit fromlsa().- weights
Edge weight:
"residuals"(default),"tna","relative","prob"(the three are the transition probability),"count","lift"or"yules_q".- significant
Keep only transitions whose residual p-value is below the fit's
alpha(defaultFALSE).- top
Keep only the strongest edges by absolute weight: a fraction below 1 keeps that share of the edges, a number of 1 or more keeps that many. Default
NULL(all edges). Applied aftersignificant.- decimals
Decimal places of the edge labels (default
1).- node_fill
Node colour (default
"white"). The probability and count networks colour nodes by state unlessnode_fillis set.- edge_labels
Show the edge weights as labels (default
TRUE).- ...
Passed to
cograph::splot(), for examplelayout,node_shape,edge_cutofforcurvature.
Value
The network drawn by cograph::splot(), invisibly; the plot is
drawn on the current device.



