Learn R Programming

longCatEDA (version 0.13)

longContPlot: Plot Continuous Longitudinal Data

Description

Function to plot continuous longitudinal or time-series data.

Usage

longContPlot(y, times = NULL, ylim = NULL, xlim = NULL, ...)

Arguments

y
a data matrix or data frame in wide (as opposed to long) format with cases in rows and repeated observations in columns.
times
time points used for the x-axis in plotting. Either a vector of the same length as the number of columns in y (i.e., all cases have the same times of observation), or a matrix of the same dimension as y (i.e., individually varyin
ylim
see par. Default is NULL and calculated from y.
xlim
see par. Default is NULL and calculated from y.
...
Arguments to be passed to plot. See par.

References

Tueller, S. J., Van Dorn, R. A., and Bobashev, G. V. (2013). Visualization of Categorical Longitudinal and Times Series Data. Manuscript Under Review.

See Also

longCatPlot.

Examples

Run this code
# longitudinal plot
times <- c(1,100,200,300,400,500)
longContPlot(example2cont, times, ylim=c(-2,6), main='', ylab='', xlab='Day')

Run the code above in your browser using DataLab