landscapetools (version 0.5.0)

util_rescale: util_rescale

Description

Linearly rescale element values in a raster to a range between 0 and 1.

Usage

util_rescale(x)

util_rescale(x)

Arguments

x

Raster* object

Value

Raster* object with values ranging from 0-1

Details

Rasters generated by nlm_ functions are scaled between 0 and 1 as default, this option can be set to FALSE if needed.

Examples

Run this code
# NOT RUN {
unscaled_landscape <- gradient_landscape + fractal_landscape
util_rescale(unscaled_landscape)

# }

Run the code above in your browser using DataLab