plot_trajectory_mult: Plot Multivariate Trajectories

View source: R/multiple_model.R

plot_trajectory_multR Documentation

Plot Multivariate Trajectories

Description

Plots a grid of longitudinal trajectories for a multivariate model. The grid displays each outcome (rows) and each latent group (columns). Individual trajectories are colored by their assigned group and faded, with the specific group highlighted and its average polynomial curve overlaid.

Usage

plot_trajectory_mult(object, lY, lA, assignments, base_colors = NULL)

Arguments

object

An object of class trajectory.mult.

lY

List of matrices representing the longitudinal responses.

lA

List of matrices representing the time or age of observation.

assignments

A matrix of group assignments (e.g., the group_assignments output from get_group_probabilities).

base_colors

Optional vector of hex colors for the groups.


trajeR documentation built on Aug. 4, 2026, 1:09 a.m.