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 positioned orbiting around the data model. It may be specified by using the command or interactively using the pointing device of your graphics user-interface. Using the pointing device, you may drag on the device window using the buttons:
# animated round trip tour for(i in 1:360) { rgl.viewpoint(i,i/4); }