plotTdProbabilities {vfprogression}R Documentation

Value plotting function for 24-2 or 30-2 visual field measurement:

Description

plotTdProbabilities plots the following 24-2 or 30-2 visual field measurement: TD probs, and PD probs:

Usage

plotTdProbabilities(tdprob, cex = 2, rectangle.color = "black",
  rectangle.width = 0.16, margins = c(2, 1, 2, 2) + 0.1, ...)

Arguments

tdprob

a vector contains TD probs/PD probs measurement. For 24-2 VF tdprob should have 52 or 54 elements. For 30-2 VF, tdprob should have 74 or 76 elements.

cex

a numeric variable for label size (default: 2).

rectangle.color

a string variable defines label color (default: 'black').

rectangle.width

a numeric variable defines label width (default: '0.16').

margins

a vector define the plot margins (default: c(2, 1, 2, 2)+0.1).

...

other variables to be added.

Value

value plot for TD prob and PD prob input.

Examples

data(vfseries)
tdprob = t(vfseries[1, grepl('^tdp[0-9]+', colnames(vfseries))])
plotTdProbabilities(tdprob)
title(main = "Total Deviation Probability", line = 3)
tdprob = t(vfseries[1, grepl('^pdp[0-9]+', colnames(vfseries))])
plotTdProbabilities(tdprob)
title(main = "Pattern Deviation Probability", line = 3)

[Package vfprogression version 0.7.1 Index]