PlotVfTimeSeries: PlotVfTimeSeries

View source: R/PLOT_VFTimeSeries.R

PlotVfTimeSeriesR Documentation

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).

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.

Author(s)

Samuel I. Berchuck

Examples

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)")



womblR documentation built on Sept. 5, 2022, 9:07 a.m.