
Plot every case as a line across the continuous indicators, one panel per profile
Source:R/wildcards.R
plot_parallel.Rdplot_parallel() plots each case as one line that joins its values on the
continuous indicators, with one panel per profile (a parallel-coordinates
plot).
Arguments
- x
One of:
a profile fit from
lpa()ormultilpa(), with or without covariates, that has two or more continuous indicators and was fitted without centering or scaling;a transition fit from
lta()with homogeneous transitions (classmultilpa_transitions) that has two or more continuous indicators;a
diagnostics()result, which is drawn from the fit it checked.
- main, subtitle
Title and subtitle of the plot.
NULL(default) keeps the view's own text.
Value
A ggplot object.
Errors:
latents_nothing_to_plotwhen the package returnedxbut this function has no plot of it: a fit with fewer than two continuous indicators, a centred or scaled fit, a general transition fit (classmultilpa_lta), an additive or cross-level fit, a mixture regression, a growth mixture or an enumeration grid. For an object of the wrong kind, the message names the plot functions that apply to it;latents_not_a_fitwhenxis not a fit, grid or other result of the package, for example a data frame;latents_missing_packagewhen ggplot2 is not installed.
Details
The x-axis lists the continuous indicators and the y-axis is the standardized value (z), so that indicators on different scales can share one axis. Each panel holds the cases whose most likely profile it is, drawn in the profile's colour; a line is fainter the less certain the case's assignment. A case with a missing value has its line broken at the gap, and a value with no answered neighbour is drawn as a point. The cases of the other profiles are drawn in grey behind. The dark line with markers is the mean of the panel's profile.
The view needs two or more continuous indicators and draws the stored data of the fit. A fit with person or grand centering or scaling is refused, because its stored data are not on the scale of the model. For a transition fit, a case is one answered occasion of a unit, counted for its most likely state.
See also
plot_raincloud() and plot_pairs() for the other views of the
cases; plot_profiles() for the profile means.
