nview3d: Set the 3D viewpoint of an RGL window using anatomical terms

Description Usage Arguments See Also Examples

View source: R/neuron-plot.R

Description

Set the 3D viewpoint of an RGL window using anatomical terms

Usage

1
2
3
nview3d(viewpoint = c("frontal", "anterior", "dorsal", "ventral", "posterior",
  "left", "right", "oblique_right", "oblique_left"), FOV = 0,
  extramat = NULL, ...)

Arguments

viewpoint

Character vector specifying viewpoint

FOV

The Field of View (defaults to 0 => orthographic projection) (see par3d for details).

extramat

An optional extra transformation matrix to be applied after the one implied by the viewpoint argument.

...

additional arguments passed to par3d

See Also

nopen3d, view3d

Examples

1
2
3
4
5
6
7
8
plot3d(kcs20, soma=TRUE)
nview3d('frontal')
nview3d('ant')
nview3d()
nview3d('posterior')
nview3d('oblique_right')
# a slightly oblique frontal view
nview3d('frontal', extramat=rotationMatrix(pi/10, 1, 1, 0))

jefferis/nat documentation built on Aug. 26, 2018, 12:13 p.m.