powered by
This function is used to plot data from class 'LongData' as it is returned by getData simulate.GPPM.
getData
simulate.GPPM
# S3 method for LongData plot(x, plotIds, by, ID, DV, ...)
a fitted Gaussian process panel model, which is an object of class 'GPPM'
longitudinal data frame of class 'LongData'.
vector of IDs for which the data should be printed. Can be left empty. Then 5 IDs are picked randomly.
label of the variable on the x-axis. Can be left empty.
label of the ID column. Can be left empty.
label of the variable on the y-axis. Can be left empty.
additional parameters (currently not used).
data("demoLGCM") plot(demoLGCM, plotIds = c(1, 2, 3)) plot(demoLGCM) # five random ids
Run the code above in your browser using DataLab