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 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:

Examples


# animated round trip tour

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


[Package Contents]