Hi,
I'm using the tidyLPA package to run some latent profile analyses and I want to check the distributions of each of my profiles separately.
The package allows me to use the "plot_density" function to create density plots. When using the following command it creates plots for all six of my profiles.
plot_density(m1.1)
I tried using the following command to plot only one type of profile in this case profile 2. However it would then plot all the profiles below it, so in this case profiles/classes 1 and 2 would be plotted and not just profile 2 as I wanted (thus if I entered "class_6" it would show plots for all 6 classes and not only class 6 etc).
plot_density(m1.1$model_1_class_2)
This is quite annoying as there is just too much on the screen for me to be able to inspect the distribution of each profile properly. Does anyone know how I could make it only show one profile at a time? I can't seem to find anything from the author showing how to do this as all the info on tidyLPA's plot functions only talk about restricting variables but not profiles.
Thanks
L
PS: The following other packages are loaded.
library(tidyverse)
library(here)
library(dplyr)
library(kableExtra)
library(tidyLPA)
library(mclust)
library(rio)
library(foreign)
library(openxlsx)