I am also analyzing an LCGA with three classes and individually-varying times of observation (tscores) using MplusAutomation. I would like to plot the data in R as well but I can't manage to write a correct visualization script. At this moment I am using the following script:
# LCGA analysis
createMixtures(classes = 1:4, filename_stem = "XX",
model_overall = "i s | x1 x2 x3 AT T1 T2 T3;\ni@0;\ns@0;",
VARIABLE = "TSCORES = T1 T2 T3;",
rdata = data,
ANALYSIS = "TYPE = random mixture; STARTS = 50 10; ESTIMATOR = MLR;",
usevariables = c("x1", "x2", "x3", "T1", "T2", "T3"),
OUTPUT = "tech8 tech11 tech14;")
runModels(filefilter = "XX", replaceOutfile = "always")
results_XX <- readModels(filefilter = "XX")
# =visualize plot
plotGrowthMixtures(results_XX, rawdata = TRUE, jitter_lines = .1) ## This doesn't seem to work..
Do you mind sharing your R script with me on how to visualize my LCGA data using TSCORES?
Thank you in advance!