Draws a compact model-selection plot from state_choices(). Each line is
one clustering method (and LPA covariance model). A ring marks the optimal
eligible value of the plotted metric within each group; hollow points mark
candidates that fail the requested size constraints.
Arguments
- x
A
vasstra_state_choicesobject.- metric
Candidate metric to plot.
- colors
Optional colors, one per displayed method/model.
- main
Optional plot title.
- groups
Optional character vector of method/model labels to display, such as
"kmeans"or"lpa/EEI".- show_legend
Show the group and marker legends.
- ...
Additional arguments passed to
graphics::plot().
Examples
data("engagement", package = "VaSSTra")
options <- state_choices(engagement, n_states = 2:4, method = "kmeans")
plot(options)
plot(options, metric = "silhouette")
