tdcm.plot()
visualizes the results from TDCM analyses.
Arguments
- results
results from
tdcm.summary
ormg.tdcm.summary
- attribute.names
an optional vector of attribute names to include in plots.
- group.names
an optional vector of group names to include in plots.
Examples
# \donttest{
## Example 1: T = 2, A = 4
data(data.tdcm01, package = "TDCM")
dat1 = data.tdcm01$data
qmat1 = data.tdcm01$q.matrix
#estimate TDCM with invariance assumed and full LCDM
m1 = TDCM::tdcm(dat1, qmat1, num.time.points = 2, invariance = TRUE, rule = "GDINA")
#summarize results with tdcm.summary function
results1 = TDCM::tdcm.summary(m1, num.time.points = 2)
#plot results
TDCM::tdcm.plot(results1, attribute.names = c("Addition", "Subtraction",
"Multiplication", "Division"))
#> [1] **Check plots window for line and bar plots for growth proportions.
# }