| plot.multilpa_transitions | R Documentation |
The measurement model is the one multilpa() fits, so every measurement and
classification view it draws is available here. what = "transitions" is the
view this family adds: the estimated transition matrix, one panel per group
class, with a row that has no data support labelled in parentheses because
it is uniform by construction rather than estimated.
## S3 method for class 'multilpa_transitions'
plot(
x,
what = c("transitions", "profiles", "bars", "heatmap", "responses", "sequences",
"sizes", "entropy", "posteriors", "avepp", "all"),
data = NULL,
scale = c("raw", "standardized"),
category = "last",
labels = TRUE,
cell_labels = TRUE,
main = NULL,
subtitle = NULL,
...
)
x |
A fitted |
what |
The view to draw. |
data |
Optional. Accepted for consistency with |
scale |
|
category |
For |
labels |
Whether to label series directly. |
cell_labels |
For |
main, subtitle |
Title and subtitle. |
... |
Nothing further is accepted; an unknown argument raises an error
of class |
A ggplot object; for what = "all", a latents_plots list.
get_tna() and get_group_tna() to draw the transitions as a
network instead, and plot.multilpa() for the same views on a
cross-sectional fit.
if (requireNamespace("ggplot2", quietly = TRUE)) {
fit <- lta(subset(course_engagement, student <= 40),
c("browse", "lectures", "forum_read"), "student",
n_profiles = 2, time = "sequence", n_starts = 2)
plot(fit, what = "transitions")
plot(fit, what = "profiles")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.