Learn R Programming

geoviz (version 0.2.2)

raster_zscale: Approximates the zscale of a raster Digital Elevation Model for 'rayshader'

Description

Approximates the zscale of a raster Digital Elevation Model for 'rayshader'

Usage

raster_zscale(raster, height_units = "m")

Arguments

raster

A raster object of elevation data values

height_units

Elevation units of the raster, c("m", "feet")

Value

a number to be used as zscale in rayshader::plot_3d()

Examples

Run this code
# NOT RUN {
raster_zscale(example_raster())

# }

Run the code above in your browser using DataLab