rgl.viewpoint {rgl} | R Documentation |
Set the viewpoint orientation.
rgl.viewpoint( theta = 0, phi = 15, fov = 60, zoom = 0, interactive = TRUE )
theta,phi |
polar coordinates |
fov |
field-of-view angle |
zoom |
zoom factor |
interactive |
logical, specifying if interactive navigation is allowed |
The viewpoint is always set in an orbit around the data model.
It can be either specified with rgl.viewpoint
or interactively using the pointing device of
your graphics user-interface.
With the pointing device you can use the buttons as follows:
# animated round trip tour for(i in 1:360) { rgl.viewpoint(i,i/4); }