rgl.viewpoint {rgl}R Documentation

setup Viewpoint

Description

Set the viewpoint orientation.

Usage

rgl.viewpoint( theta = 0, phi = 15, fov = 60, zoom = 0, interactive = TRUE )

Arguments

theta,phi polar coordinates
fov field-of-view angle
zoom zoom factor
interactive logical, specifying if interactive navigation is allowed

Details

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:

Examples


# animated round trip tour

for(i in 1:360) {
  rgl.viewpoint(i,i/4); 
}


[Package Contents]