- data
A data frame containing longitudinal data. Must have columns
for subject ID, time, treatment group, and response variable.
- formula
A formula for the mixed-effects model. Default is
y ~ treatment * time + (1 + time | id) where y,
treatment, time, and id refer to the standardized
internal column names (mapped from responseVar, treatmentVar,
timeVar, and idVar).
- idVar
Character string naming the subject ID column in data.
Default: "id".
- timeVar
Character string naming the time column in data.
Default: "time".
- treatmentVar
Character string naming the treatment column in
data. Default: "treatment".
- responseVar
Character string naming the response column in
data. Default: "y".
- rlmerArgs
A list of additional arguments passed to
rlmer.
- lineAlpha
Numeric in [0, 1]. Transparency of subject lines.
Default: 0.6.
- fixedLineWidth
Numeric. Width of fixed-effect overlay lines.
Default: 1.2.
- lowColor
Color for low robustness weights (potential outliers).
Default: "black".
- highColor
Color for high robustness weights (typical observations).
Default: "lightgray".
- fixedLineColor
Color for the fixed-effect prediction lines.
Default: "firebrick".
- fixedLinetype
Linetype for the fixed-effect prediction lines. Can be
a single value (e.g., "solid", "dashed") applied to all
lines, or "byTreatment" to use different linetypes for each
treatment group. Default: "solid".
- title
Optional plot title.
- xlab
Label for x-axis. If NULL (default), uses the value of
timeVar.
- ylab
Label for y-axis. If NULL (default), uses the value of
responseVar.