stretchPlot: Contrast adjustments for RasterLayer plots

Description Usage Arguments Details Value Examples

Description

A plotting function that provides methods for improving the contrast between values.

Usage

1
2
3
4
stretchPlot(x, type = "linear", n, ...)

## S4 method for signature 'RasterLayer'
stretchPlot(x, type = "linear", n, ...)

Arguments

x

a RasterLayer

type

character. Possible values are "linear", "hist.equal", and "sd"

n

number of standard deviations to include if type = "sd"

...

Additional arguments for raster::plot

Details

If type = "hist.equal", a histogram equalization procedure will be applied to the values of x. If type = "sd", the values of x will be scaled between values that fall between n standard deviations of the mean.

Value

Returns a RasterLayer plot.

Examples

1
2
3
4
5
mod <- enfa(x = climdat.hist, s.dat = ABPR, field = "CODE")
sm <- sensitivity_map(mod)
stretchPlot(sm)
stretchPlot(sm, type = "hist.equal")
stretchPlot(sm, type = "sd", n = 2)

CENFA documentation built on Aug. 16, 2021, 9:06 a.m.