View source: R/sf_proj_as_ray.R
Modify sf data to plot over rayshader
1 2 | sf_proj_as_ray(r, sf, z_pos = 1, zscale = 10, as_sf = TRUE,
groups = TRUE, crop = TRUE)
|
r |
original raster used in rayshader |
sf |
sf object to add on plot (with or without z column) |
z_pos |
z-position of the sf on the 3d map if not in dataset |
zscale |
if z-column existed in the dataset |
as_sf |
Logical. Return sf object or not |
groups |
Logical. Whether to group coordinates in blocks according to original structure. |
crop |
Whether to crop sf object to extent of raster |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.