Learn R Programming

visualFields (version 0.6.2)

vfplot_plr: plot with the PLR analysis

Description

plots the slope values and the corresponding probabiliby category for each location

Usage

vfplot_plr( sl, pval, vfinfo, newWindow = FALSE,
                   xmin = NULL, xmax = NULL, ymin = NULL, ymax = NULL,
                   colorMapType = "pval", colorScale = NULL,
                   txtfont = "sans", pointsize = 10, width = 6,
                   showaxis = FALSE, colaxis = "black" )

Arguments

sl

slopes

pval

pvalues calculated for the slope

vfinfo

information about the visual field

newWindow

boolean value- TRUE will generate a new window for the plot. Default value is TRUE

xmin, xmax, ymin, ymax

minimum and maximum limits on the x and y axes, in degrees of visual angle. If NULL, then the limits are the maximum and minimum location values + 2.5 percent of the range. Default is NULL.

colorMapType

what does color map categorizes. It can be pvals, slopes, or years blind. Default is pvals

colorScale

Color mapping to use. Default is NULL. A different default is given depending on colorMapType

txtfont

font of the text with visual-sensitivity values. Default is sans

pointsize

size of the text with visual-sensitivity values. Default is 10

width

width of the window. height is calucated using the width, xminmax and yminmax

showaxis

Whether to show axis or not. Default is FALSE

colaxis

Color of the axis to show, if showaxis is TRUE. Default is black

Details

The vfplot function operates on a single row of visual fileds (vf). Depending on the plot type it will generate a plot representing the sensitivity at each location. The color scheme elucidates the degree of sensitivity at that location. Locations with zero sensitivity are shown in black. Blind spots have been excluded fronm the plot

References

[1] N. O'Leary, B. C. Chauhan, and P. H. Artes. Visual field progression in glaucoma: estimating the overall significance of deterioration with permutation analyses of pointwise linear regression (PoPLR). Investigative Ophthalmology and Visual Science, 53, 2012

See Also

poplr, poplr_cstat, poplr_pstat, vflayout_poplr

Examples

Run this code
# NOT RUN {
  res <- poplr( vf91016right )
  vfplot_plr( res$sl, res$pval, res$vfdata )
# }

Run the code above in your browser using DataLab