Internal function.
.makeColorMatrix(grobToPlot, zoomExtent, maxpixels, legendRange, cols = NULL,
na.color = "#FFFFFF00", zero.color = NULL, skipSample = TRUE)# S4 method for Raster,Extent,numeric
.makeColorMatrix(grobToPlot, zoomExtent,
maxpixels, legendRange, cols = NULL, na.color = "#FFFFFF00",
zero.color = NULL, skipSample = TRUE)
A SpatialObject
.
An Extent
object for zooming to.
Defaults to whole extent of grobToPlot
.
Numeric. Number of cells to subsample the complete
grobToPlot
.
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 bounds contained within the grobToPlot
.
Colours specified in a way that can be understood directly
or by colorRampPalette
.
Character string indicating the color for NA
values.
Default transparent.
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
if zero should be the value given to it
by the colortable associated with the Raster.
Logical. If no downsampling is necessary, skip.
Default TRUE
.