plotrajeR.Trajectory.NL: Plot Method for Non-Linear Trajectory Objects

View source: R/PlotTrajeR.R

plotrajeR.Trajectory.NLR Documentation

Plot Method for Non-Linear Trajectory Objects

Description

Plots the trajectories for a non-linear model fitted by 'trajeR'.

Usage

## S3 method for class 'Trajectory.NL'
plotrajeR(
  Obj,
  plotcov = NULL,
  col = "black",
  Y = NULL,
  A = NULL,
  Risk = NULL,
  mean = FALSE,
  alpha = 1,
  TCOV = NULL,
  ...
)

Arguments

Obj

An object of class 'Trajectory.NL'.

plotcov

An optional vector or matrix of time-dependent covariates.

col

An optional vector of colors.

Y

The original response variable matrix.

A

The original time variable matrix.

Risk

Optional. The original risk covariate matrix.

mean

Logical. If 'TRUE', plots the mean trajectory for each group.

alpha

A numeric value for the transparency of individual trajectory lines.

TCOV

Matrix or Formula. An optional matrix (or one-sided formula) containing time-dependent covariates that influence the trajectories.

...

Other graphical parameters passed to 'plot'.

Value

a graphic.


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