rayshader (version 0.11.5)

render_snapshot: Render Snapshot of 3D Visualization

Description

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

Usage

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

Run this code
# NOT RUN {
montereybay %>%
 sphere_shade() %>%
 plot_3d(montereybay,zscale=50,zoom=0.6,theta=-90)
# }
# NOT RUN {
 
# }
# NOT RUN {
render_snapshot(clear = TRUE)
# }

Run the code above in your browser using DataLab