View source: R/FitFig_helper.R
getFitFig | R Documentation |
This is an internal function that generates a ggplot object for a fitted model. It is called by the getFigure
function.
getFitFig(
model,
nClass,
cluster_TIC,
grp_var,
sub_Model,
t_var,
records,
y_var,
curveFun,
y_model,
xstarts,
xlab,
outcome
)
model |
A fitted mxModel object. This is the output from one of the estimation functions in this package.
It takes value passed from |
nClass |
An integer specifying the number of classes for the mixture model or multiple group model. It
takes value passed from |
cluster_TIC |
A string or character vector representing the column name(s) for time-invariant covariate(s)
indicating cluster formations. It takes value passed from |
grp_var |
A string specifying the column that indicates manifested classes when applicable. It takes the value
passed from |
sub_Model |
A string that specifies the sub-model for latent classes. Supported sub-models include |
t_var |
A string representing the prefix of the column names corresponding to the time variable at each study
wave. It takes value passed from |
records |
A numeric vector representing the indices of the study waves. It takes value passed from |
y_var |
A string or character vector representing the prefix of the column names for the outcome variable(s)
at each study wave. It takes value passed from |
curveFun |
A string specifying the functional form of the growth curve. Supported options for |
y_model |
A string that specifies how to fit longitudinal outcomes. Supported values are |
xstarts |
A numeric value to indicate the starting time of the longitudinal process. It takes value passed from |
xlab |
A string representing the time unit (e.g., "Week", "Month", or "Year") for the x-axis. Default is
"Time". It takes value passed from |
outcome |
A string or character vector representing the name(s) of the longitudinal process(es) under examination.
It takes value passed from |
A ggplot object or a list of ggplot objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.