Learn R Programming

womblR (version 1.0.6)

PlotVfTimeSeries: PlotVfTimeSeries

Description

Plots a time series at each location of the Humphrey Field Analyzer-II visual field .

Usage

PlotVfTimeSeries(
  Y,
  Location,
  Time,
  main = "Visual field sensitivity time series \n at each location",
  xlab = "Time from first visit (days)",
  ylab = "Sensitivity (dB)",
  line.col = "red",
  line.reg = TRUE,
  line.type = 1
)

Arguments

Y

a time series variable to be plotted.

Location

a variable corresponding to the location on the visual field that the time series variable was observed.

Time

a variable corresponding to the time that the time series variable was observed.

main

an overall title for the plot.

xlab

a title for the x axis.

ylab

a title for the y axis.

line.col

color for the regression line, either character string corresponding to a color or a integer (default = "red").

line.reg

logical, determines if there are regression lines printed (default = TRUE).

line.type

integer, specifies the type of regression line printed (default = 1).

Author

Samuel I. Berchuck

Details

PlotVfTimeSeries is used in the application of glaucoma progression. In each cell is the observed DLS at each location over visits, with the red line representing a linear regression trend.

Examples

Run this code
data(VFSeries)
PlotVfTimeSeries(Y = VFSeries$DLS,
                  Location = VFSeries$Location,
                  Time = VFSeries$Time,
                  main = "Visual field sensitivity time series \n at each location",
                  xlab = "Days from baseline visit",
                  ylab = "Differential light sensitivity (dB)")


Run the code above in your browser using DataLab