PlotCP {spCP}R Documentation

PlotCP

Description

Plots estimated visual field sensitivities using change point model.

Usage

PlotCP(
  object,
  data,
  location = "Location",
  time = "Time",
  dls = "DLS",
  line = TRUE,
  ci = TRUE,
  lwd = 1,
  lty = 1,
  col = 2,
  ci.lwd = 1,
  ci.lty = 2,
  ci.col = 2,
  cp.line = FALSE,
  cp.ci = FALSE,
  cp.lwd = 1,
  cp.lty = 1,
  cp.col = 4,
  cp.ci.lwd = 1,
  cp.ci.lty = 2,
  cp.ci.col = 4,
  main = "Estimated visual field sensitivity\nusing change points",
  xlab = "Years from baseline visit",
  ylab = "Sensitivity (dB)"
)

Arguments

object

a spCP regression object.

data

a dataframe containing the raw sensitivities.

location

a character string indicating the column name in data of the variable of locations on the visual field.

time

a character string indicating the column name in data of the variable of visual field testing times.

dls

a character string indicating the column name in data of the variable of the raw visual field sensitivities.

line

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

ci

logical, determines if there are confidence intervals printed (default = TRUE).

lwd

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

lty

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

col

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

ci.lwd

integer, specifies the width of the confidence intervals (default = 1).

ci.lty

integer, specifies the type of confidence intervals (default = 2).

ci.col

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

cp.line

logical, determines if there the change point is printed (default = FALSE).

cp.ci

logical, determines if there the change point confidence intervals are printed (default = FALSE).

cp.lwd

integer, specifies the width of the change point line (default = 1).

cp.lty

integer, specifies the type of change point line (default = 1).

cp.col

color for the optional change point, either character string corresponding to a color or a integer (default = "blue").

cp.ci.lwd

integer, specifies the width of the change point confidence intervals (default = 1).

cp.ci.lty

integer, specifies the type of change point confidence intervals (default = 2).

cp.ci.col

color for the confidence intervals of the optional change point, either character string corresponding to a color or a integer (default = "blue").

main

an overall title for the plot.

xlab

a title for the x axis.

ylab

a title for the y axis.

Details

PlotCP is used in the application of glaucoma progression. The function is capable of plotting the observed DLS values across the visual field, along with the estimated mean process (with 95 percent credible intervals) and the estimated mean posterior change point location (with 95 percent credible intervals).

Author(s)

Samuel I. Berchuck


[Package spCP version 1.3 Index]