Learn R Programming

visualFields (version 1.0.7)

setdefaults: Settings in the visualField environment

Description

Functions to set and get settings in the visualField environment

Usage

setdefaults()

getnv()

setnv(nv)

getgpar()

setgpar(gpar)

getlocmap()

setlocmap(locmap)

getlocini()

setlocini(locini = 11)

getvfcols()

.vfenv

Value

setdefaults: No return value

getnv: Returns the normative value currently in used by visualFields

setnv: No return value

getgpar: Returns the graphical parameters currently in used by visualFields

setgpar: No return value

getlocmap: Returns the location map currently in used by visualFields

setlocmap: No return value

getlocini: Returns the column where visual field data starts

setlocini: No return value

getvfcols: Returns the columns with visual field data

Format

An object of class environment of length 4.

Arguments

nv

normative values to to set in the visualFields environment

gpar

structure with all graphical parameters

locmap

location map to to set in the visualFields environment

locini

column from where to start reading the visual field data

Details

  • setdefaults sets the default location map, normative value and graphical parameters visualFields environment

  • setnv sets normative values in the visualFields environment

  • getnv gets current normative values from the visualFields environment

  • setlocmap sets a location map in the visualFields environment

  • getlocmap gets the current location map from the visualFields environment

  • setgpar sets graphical parameters in the visualFields environment

  • getgpar gets current graphical parameters from the visualFields environment

  • setlocini sets the column where visual field data start in the visualFields environment

  • getlocini gets the column where visual field data starts from the visualFields environment

  • getlocini gets the column where visual field data starts from the visualFields environment

  • getvfcols gets all the columns with visual field data

Examples

Run this code
# get and set normative values
getnv()$info$name                # print name of set normative values
setnv(normvals$iowa_PC26_pw_cps) # set pointwise normative values
getnv()$info$name                # print name of set normative values
setdefaults()                    # return back to defaults
# get and set a location map
getlocmap()$name         # name of set normative values
setlocmap(locmaps$p30d2) # set the 30-2 location map
getlocmap()$name         # name of set normative values
setdefaults()            # return back to defaults
# get and set a graphical parameters
getgpar()$tess$xlim  # limits of x axis
setgpar(gpars$pPeri) # set graphical parameters for the Peripheral test
getgpar()$tess$xlim  # limits of x axis
setdefaults()        # return back to defaults
# get and set initial column for visual field data
getlocini()
getvfcols() # get columns with visual fields data
setlocini(15)
getvfcols() # get columns with visual fields data
setdefaults() # return back to defaults

Run the code above in your browser using DataLab