lgtdl (version 1.1.4)

plot.lgtdl: 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

"plot"(x, ...)

Arguments

x
An object of class lgtdl.
...
Optional arguments to control the plotting.

Value

No value is returned. A line plot of the longitudinal object is rendered on the active graphics device.

Details

One should be able to specify values for any of the graphics parameters to change the appearance of the plot.

See Also

lgtdl

Examples

Run this code
  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)

Run the code above in your browser using DataLab