hillshader {hillshader}R Documentation

Hillshader

Description

.

Usage

hillshader(elevation, shader = "ray_shade", filename = NULL, ...)

Arguments

elevation

Raster, a digital elevation model.

shader

Character. List of rayshader shader(s) to sequentially apply. Defaults to ray_shade.

filename

Character. If set, the result if written as a raster file. Defaults to NULL.

...

Additional parameters to be passed to the either shader functions or to raster::writeRaster.

Value

Either a RasterLayer of light intensities (hillshade), or writes the result to disk if filename is set.

Author(s)

Pierre Roudier

Examples


# Simple example
library(raster)

hs <- hillshader(maungawhau)
plot(hs)


[Package hillshader version 0.1.2 Index]