plotvfray {binovisualfields} | R Documentation |
Plots binocular visual field rays
Description
plotvfray
plots a figure showing how the left and right visual field sensitivity threshold data interact in the simulated binocular visual field.
Usage
plotvfray(leftvf, rghtvf, lefttheta, righttheta, fixdist, distplane)
Arguments
leftvf |
An 8 by 10 matrix of sensitivity threshold data for the left visual field |
rghtvf |
An 8 by 10 matrix of sensitivity threshold data for the right visual field |
lefttheta |
A number left eye rotating angle in radian |
righttheta |
A number right eye rotating angle in radian |
fixdist |
A 2 element vector the coordinates of the fixation point in cartesian system in mm. |
distplane |
A number object distance in mm range from 0 to a maximum of 1500 mm. |
Value
A plot of binocular visual field rays from a top view with left eye on the top.
Warning
the unit of fixdist, pd and distplane must be in mm.
Examples
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)
leftvf <- rghtvf[, 10:1]
plotvfray(leftvf, rghtvf, -.05, .05, c(700, 0), 1000)
[Package binovisualfields version 0.1.1 Index]