tidyLPA
tidyLPA copied to clipboard
add a function for selecting a subset of estimated model to plot?
It is possible to plot the output from a single model, e.g.:
iris_sample <- iris[c(1:10, 51:60, 101:110), ] # to make example run more quickly
estimated_models <- iris_sample %>%
subset(select = c("Sepal.Length", "Sepal.Width")) %>%
estimate_profiles(n_profiles = 1:2, models = 1:2)
plot_profiles(estimated_models[[1]]))
But the list indexing may be a bit tricky (in some cases or for some users). Wondering if there could be an interface for selecting which profiles to plot (or compare with compare_solutions()
, etc.). Welcome input on this.