- mapping
Ignored.
- data
A SpatRaster object.
- interpolate
If TRUE interpolate linearly, if FALSE
(the default) don't interpolate.
- r, g, b
Integer representing the number of layer of data to be
considered as the red (r), green (g) and blue (b) channel.
- alpha
The alpha transparency, a number in [0,1], see argument alpha in
hsv.
- maxcell
positive integer. Maximum number of cells to use for
the plot.
- max_col_value
Number giving the maximum of the color values range.
When this is 255 (the default), the result is computed most efficiently.
See grDevices::rgb().
- ...
Other arguments passed on to layer()'s params argument. These
arguments broadly fall into one of 4 categories below. Notably, further
arguments to the position argument, or aesthetics that are required
can not be passed through .... Unknown arguments that are not part
of the 4 categories below are ignored.
Static aesthetics that are not mapped to a scale, but are at a fixed
value and apply to the layer as a whole. For example, colour = "red"
or linewidth = 3. The geom's documentation has an Aesthetics
section that lists the available options. The 'required' aesthetics
cannot be passed on to the params. Please note that while passing
unmapped aesthetics as vectors is technically possible, the order and
required length is not guaranteed to be parallel to the input data.
When constructing a layer using
a stat_*() function, the ... argument can be used to pass on
parameters to the geom part of the layer. An example of this is
stat_density(geom = "area", outline.type = "both"). The geom's
documentation lists which parameters it can accept.
Inversely, when constructing a layer using a
geom_*() function, the ... argument can be used to pass on parameters
to the stat part of the layer. An example of this is
geom_area(stat = "density", adjust = 0.5). The stat's documentation
lists which parameters it can accept.
The key_glyph argument of layer() may also be passed on through
.... This can be one of the functions described as
key glyphs, to change the display of the layer in the legend.
- stretch
character. Option to stretch the values to increase contrast: "lin" (linear) or "hist" (histogram). The linear stretch uses stretch with arguments minq=0.02 and maxq=0.98
- zlim
numeric vector of length 2. Range of values to plot (optional). If this is set, and stretch="lin" is used, then the values are stretched within the range of zlim. This allows creating consistent coloring between SpatRasters with different cell-value ranges, even when stretching the colors for improved contrast
- mask_projection
logical, defaults to FALSE. If TRUE, mask out
areas outside the input extent. For example, to avoid data wrapping
around the date-line in Equal Area projections. This parameter is passed
to terra::project() when reprojecting the SpatRaster.