View source: R/render_cropped_scene.R
Create a cropped scene
1 2 | render_point_cropped_scene(ray_image, datamat, position, position_next,
window = 100, zscale = 5, zoom = 0.4, windowsize = c(500, 500))
|
ray_image |
Rayshaded image created with sphere_shade, add_shadow, ... |
datamat |
Original raster transformed as matrix with t(as.matrix(raster)) |
position |
dataframe of point coordinates in the rayshader system as created using sf_proj_as_ray() |
position_next |
dataframe of another point coordinates in the rayshader system as created using sf_proj_as_ray() |
window |
size of the square window in pixels around the position |
zscale |
Ratio between Z and x/y. Adjust the zscale down to exaggerate elevation features. Better to use the same for the entire workflow. |
zoom |
Zoom factor. Reduce to zoom in. |
windowsize |
Size of the rgl window |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.