View source: R/growth-mixture-plot.R
| plot.latents_growth_mixture | R Documentation |
Plot a growth mixture model
## S3 method for class 'latents_growth_mixture'
plot(
x,
what = c("trajectories", "individuals", "coefficients", "random", "classification",
"posteriors"),
time = NULL,
facet = FALSE,
persons = 12L,
max_persons = 120L,
spread = 0.8,
level = 0.95,
main = NULL,
subtitle = NULL,
...
)
x |
A |
what |
|
time |
The numeric variable to draw along; by default the first
numeric variable of |
facet |
For |
persons |
For |
max_persons |
For |
spread |
For |
level |
Confidence level of the bands and intervals. |
main, subtitle |
Title and subtitle; defaults describe the view. |
... |
Unused. |
A ggplot object. Raises latents_missing_package without ggplot2.
few_students <- subset(growth_scores, student <= 60)
fit <- mixture_regression(score ~ wave, few_students, n_classes = 2,
id = "student", class_level = "group",
random = "intercept", seed = 1)
if (requireNamespace("ggplot2", quietly = TRUE)) plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.