Learn R Programming

gppm (version 0.3.0)

plot.LongData: 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 LongData
plot(x, plotIds, by, ID, DV, ...)

Value

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

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).

Examples

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

Run the code above in your browser using DataLab