cutrgl | R Documentation |
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.
cutrgl (...) croprgl (xlim = NULL, ylim = NULL, zlim = NULL, ...) uncutrgl (...) uncroprgl(...)
xlim, ylim, zlim |
The limits of the plot. |
... |
Any argument that can be passed to the function plotrgl,
e.g argument |
Returns the updated plotting list. See plotdev.
Both functions will not work when another active rgl window has been opened.
In that case, cutrgl
will freeze R, and the escape key should be used.
Karline Soetaert <karline.soetaert@nioz.nl>
plotrgl,
material3d, par3d for rgl
arguments that can be passed to
the function.
## Not run: 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 ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.