plotvf: Plots visual field

Description Usage Arguments Value Warning Examples

View source: R/plotvf.R

Description

plotvf plots a figure of a visual field matrix with sensitivity threshold values

Usage

1
plotvf(xs, vf, title = "")

Arguments

xs

A vector of horizontal coordinates. The length of it must be either 10 for a monocular or 25 for a binocular visual field plot.

vf

A matrix of either a left/right monocular visual field or a binocular visual field sensitivity values

title

A string for the name of the plot.

Value

A plot of a monocular or binocular visual field.

Warning

the length of xs and the number of columns of the vf must be the same and with a value of either 10 or 20.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
m_xs <- seq(-27, 27, length.out = 10)
rghtvf <- matrix(c(
NA, NA, NA, 30, 30, 30, 30, NA, NA, NA,
NA, NA, 30, 30, 30, 30, 30, 30, NA, NA,
NA, 30, 30, 30, 30, 30, 30, 30, 30, NA,
30, 30, 30, 30, 30, 30, 30, 30, 30, NA,
30, 30, 30, 30, 30, 30, 30,  0, 30, NA,
NA, 30, 30, 30, 30, 30, 30, 30, 30, NA,
NA, NA, 30, 30, 30, 30, 30, 30, NA, NA,
NA, NA, NA, 30, 30, 30, 30, NA, NA, NA
), ncol=10, byrow=TRUE)
plotvf(m_xs, rghtvf, title='right visual field')

binovisualfields documentation built on March 13, 2020, 1:35 a.m.