Usage
.makeColorMatrix(grobToPlot, zoomExtent, maxpixels, legendRange, cols = NULL,
na.color = "#FFFFFF00", zero.color = NULL, skipSample = TRUE)
## S3 method for class 'Raster,Extent,numeric':
.makeColorMatrix(grobToPlot, zoomExtent,
maxpixels, legendRange, cols = NULL, na.color = "#FFFFFF00",
zero.color = NULL, skipSample = TRUE)
Arguments
grobToPlot
A SpatialObject
.
zoomExtent
An Extent
object for zooming to.
Defaults to whole extent of grobToPlot
.
maxpixels
Numeric. Number of cells to subsample the complete
grobToPlot
.
legendRange
Numeric vector giving values that, representing the lower
and upper bounds of a legend (i.e., 1:10
or
c(1,10)
will give same result) that will override
the data bound
cols
Colours specified in a way that can be understood directly
or by colorRampPalette
. na.color
Character string indicating the color for NA
values.
Default transparent.
zero.color
Character string indicating the color for zero values,
when zero is the minimum value.
Otherwise, it is treated as any other color.
Default transparent.
Use NULL
skipSample
Logical. If no downsampling is necessary, skip.
Default TRUE
.