plot.LongData: Plot a Long Data Frame

View source: R/plotLong.R

plot.LongDataR Documentation

Plot a Long Data Frame

Description

This function is used to plot data from class 'LongData' as it is returned by getData simulate.GPPM.

Usage

## S3 method for class 'LongData'
plot(x, plotIds, by, ID, DV, ...)

Arguments

x

longitudinal data frame of class 'LongData'.

plotIds

vector of IDs for which the data should be printed. Can be left empty. Then 5 IDs are picked randomly.

by

label of the variable on the x-axis. Can be left empty.

ID

label of the ID column. Can be left empty.

DV

label of the variable on the y-axis. Can be left empty.

...

additional parameters (currently not used).

Value

a fitted Gaussian process panel model, which is an object of class 'GPPM'

Examples

data("demoLGCM")
plot(demoLGCM, plotIds = c(1, 2, 3))
plot(demoLGCM) # five random ids

gppm documentation built on Aug. 25, 2025, 9:50 a.m.

Related to plot.LongData in gppm...