plot.lgtdl {lgtdl} | R Documentation |
A function for plotting lgtdl objects.
Description
A lgtdly object consists of a time component and one or more covariates measured or observed at the times specified in the time component. This function plots the covariate trajectories as lines on the y axis.
Usage
## S3 method for class 'lgtdl'
plot(x, ...)
Arguments
x |
An object of class |
... |
Optional arguments to control the plotting. |
Details
One should be able to specify values for any of the graphics parameters to change the appearance of the plot.
Value
No value is returned. A line plot of the longitudinal object is rendered on the active graphics device.
Author(s)
Robert Gentleman
See Also
Examples
x1<-data.frame(time=c(1,3,5), cov=c(4,6,8))
x2<-data.frame(time=c(11,13,15), interest=c(66,45,88))
x1<-as.lgtdl(x1)
x2<-as.lgtdl(x2)
plot(x1)
plot(x2)
[Package lgtdl version 1.1.5 Index]