50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


geoviz (version 0.2.2)

elevation_shade: Produces an elevation shaded image from a raster

Description

Produces an elevation shaded image from a raster

Usage

elevation_shade(
  raster_dem,
  elevation_palette = c("#54843f", "#808080", "#FFFFFF"),
  return_png = TRUE,
  png_opacity = 0.9
)

Arguments

raster_dem

a raster

elevation_palette

a vector of colours to use for elevation shading

return_png

TRUE to return an image. FALSE will return a raster

png_opacity

Opacity of the returned image. Ignored if return_png = FALSE

Value

elevation shaded image

Examples

Run this code
# NOT RUN {
elevation_shade(example_raster())
# }

Run the code above in your browser using DataLab