View source: R/raster_rescale.R
rasterMinMaxRescale | R Documentation |
Rescale a raster values in the range from 0 to 1 using min-max normalization.
rasterMinMaxRescale(x)
x |
A RasterLayer object |
RasterLayer
r <- raster::raster(system.file("extdata/elev_12_5m.tif", package="runout.opt"))
r_minmax <- rasterMinMaxRescale(r)
raster::plot(r_minmax)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.