powered by
Linear strech of values in a Raster object
stretch(x, minv=0, maxv=255, minq=0, maxq=1, filename='', ...)
Raster* object
numeric >= 0 and smaller than maxv. lower bound of streched value
numeric <= 255 and larger than maxv. upper bound of streched value
numeric >= 0 and smaller than maxq. lower quitile bound of original value
numeric <= 1 and larger than minq. upper quitile bound of original value
character. Filename for the output Raster object (optional)
additional arguments as for writeRaster
writeRaster
stretch argument in plotRGB
plotRGB
# NOT RUN { r <- raster(nc=10, nr=10) r[] <- 1:100 * 10 stretch(r) s <- stack(r, r*2) stretch(s) # }
Run the code above in your browser using DataLab