plotvf {binovisualfields}R Documentation

Plots visual field

Description

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

Usage

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

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')

[Package binovisualfields version 0.1.1 Index]