Hey when I'm plotting my profiles I use this code:
plot_profiles(mydata, sd= FALSE, add_line = TRUE, bw= FALSE, rawdata = FALSE )
"my data" being the name of whatever I've saved the LPA solution I want to plot as.
Don't know enough to comment on your code but I hope this helps, has always plotted things for me.
PS: I have the following packages loaded:
library(tidyverse)
library(here)
library(dplyr)
library(kableExtra)
library(tidyLPA)
library(mclust)
library(rio)
library(dplyr)
library(foreign)
library(openxlsx)