sf_proj_as_ray: Modify sf data to plot over rayshader

Description Usage Arguments

View source: R/sf_proj_as_ray.R

Description

Modify sf data to plot over rayshader

Usage

1
2
sf_proj_as_ray(r, sf, z_pos = 1, zscale = 10, as_sf = TRUE,
  groups = TRUE, crop = TRUE)

Arguments

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


statnmap/maps2ray documentation built on Dec. 7, 2019, 12:29 a.m.