plot.lgtdl: A function for plotting lgtdl objects.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/lgtdl.R

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

1
2
## S3 method for class 'lgtdl'
plot(x, ...)

Arguments

x

An object of class lgtdl.

...

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

lgtdl

Examples

1
2
3
4
5
6
7
  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)

lgtdl documentation built on May 1, 2019, 8:47 p.m.

Related to plot.lgtdl in lgtdl...