Learn R Programming

plot3Drgl (version 1.0.4)

cutrgl: Cutting a rectangular region from an rgl plot.

Description

cutrgl zooms in on a selected region of the plot. It overwrites the current plot. Selection is done by dragging over the plot, with the left mousekey clicked.

croprgl zooms in on a region of the plot defined by the axes limits. It overwrites the current plot.

uncutrgl and uncroprgl restore the original plot, but keep the current orientation.

Usage

cutrgl (...) 
croprgl (xlim = NULL, ylim = NULL, zlim = NULL, ...) 
uncutrgl (...)
uncroprgl(...)

Value

Returns the updated plotting list. See plotdev.

Arguments

xlim, ylim, zlim

The limits of the plot.

...

Any argument that can be passed to the function plotrgl, e.g argument lighting, or to the rgl functions par3d, open3d or material3d. Exceptions are new and add (which are always FALSE).

Author

Karline Soetaert <karline.soetaert@nioz.nl>

See Also

plotrgl,

material3d, par3d for rgl arguments that can be passed to the function.

Examples

Run this code
if (FALSE) {
 ribbon3D(z = volcano, zlim= c(-100, 200), image = TRUE, plot = FALSE)
 plotrgl(new = TRUE) # new window
 cutrgl()           # select region with left mouse
 cutrgl()           # second selection
 uncutrgl()         # original restored
}

Run the code above in your browser using DataLab