Description Usage Arguments Author(s) References See Also Examples
Function to plot continuous longitudinal or time-series data.
1 |
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 |
jog |
When |
ylim |
see |
xlim |
see |
... |
Arguments to be passed to |
Stephen Tueller
Tueller, S. J., Van Dorn, R. A., & Bobashev, G. V. (2016). Visualization of categorical longitudinal and times series data (Report No. MR-0033-1602). Research Triangle Park, NC: RTI Press. http://www.rti.org/publication/visualization-categorical-longitudinal-and-times-series-data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # longitudinal plot
times <- c(1,100,200,300,400,500)
par(mfrow=c(1,1), bg='cornsilk3')
longContPlot(example2cont, times, ylim=c(-2,6), main='', ylab='', xlab='Day')
par(mfrow=c(1,1), bg='transparent')
# jogging example
times <- c(1,100,200,300,400,500)
par(mfrow=c(1,2), bg='cornsilk3')
longContPlot(example2cat, times, ylim=c(0,6),
main='Growth Curves', ylab='', xlab='Days')
longContPlot(example2cat, times, jog=TRUE, ylim=c(0,6),
main='Growth Curves + Jogging',
ylab='', xlab='Days')
par(mfrow=c(1,1), bg='transparent')# compare growth curves to longCat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.