Image and elevation to Rayshader

stack_to_ray(elevation, image = NULL)

Arguments

elevation

Raster for elevation or path to elevation raster with same number of rows/cols

image

RasterStack or path to png image. If not same dimension, image is resampled

Value

A list with 'elevation' for the elevation matrix and 'overlay' for the rgb overlay from the 'image'