| camera.zup {ivue} | R Documentation |
A Z-Up Initial Camera
Description
Construct a camera without opening a graphics device or loading rgl.
Usage
camera.zup(elevation = 20, turn = -135, fov = 0, zoom = 0.8)
Arguments
elevation |
Viewing elevation in degrees above the xy plane, from -90 to 90. At either pole the z axis points along the viewing direction. |
turn |
Rotation about the data's z axis, in degrees. Zero puts positive x to the right and positive y away from the viewer. The default -135 puts positive x down-left and positive y down-right at positive elevation. |
fov |
Field of view in degrees, from 0 to 179. Zero gives orthographic projection without perspective foreshortening. |
zoom |
Positive rgl zoom parameter: smaller values enlarge the scene, larger values show a wider view. Browser and GIF export use this convention. |
Details
This sets the initial view, not an interactive rotation constraint. Away from the poles, positive z projects upward. Interactive dragging can subsequently tilt it. The rotation is Rx(elevation - 90) times Rz(turn).
Value
A list with userMatrix, fov, and zoom, accepted by the camera argument of every plot3D function.
See Also
layer3D.axes(), plot3D.plain()
Examples
camera.zup()
camera.zup(elevation = 30, turn = 0)