Either captures the current rgl view and displays, or saves the current view to disk.

render_snapshot(filename, clear = FALSE)

Arguments

filename

Filename of snapshot. If missing, will display to current device.

clear

Default `FALSE`. If `TRUE`, the current `rgl` device will be cleared.

Value

Displays snapshot of current rgl plot (or saves to disk).

Examples

montereybay %>% sphere_shade() %>% plot_3d(montereybay,zscale=50,zoom=0.6,theta=-90)
render_snapshot(clear = TRUE)