- r
the epmGrid, rasterLayer, SpatRaster or sf object that has been plotted
- params
If an epmGrid plot was saved to a variable, provide that here.
Contents will override other arguments.
- direction
direction of color ramp. If omitted, then direction is
automatically inferred, otherwise can be specified as horizontal
or
vertical
.
- side
side for tick marks, see axis
documentation.
Automatically inferred if omitted.
- location
either a location name (see Details
), or coordinates
for the corners of the bar legend c(xmin, xmax, ymin, ymax)
.
- nTicks
number of tick marks, besides min and max.
- adj
if location is top, left, bottom or right, use this argument to
adjust the location of the legend, defined in percent of the figure width.
See Details for additional information.
- shortFrac
Percent of the plot width range that will be used as the
short dimension of the legend. Only applies to preset location options.
- longFrac
Percent of the plot width range that will be used as the
long dimension of the legend. Only applies to preset location options.
- axisOffset
distance from color bar for labels, as a percent of the
plot width.
- border
logical, should the color legend have a black border
- ramp
either a vector of color names that will be interpolated, or a
color ramp function that takes an integer (see for example
colorRampPalette
). If omitted, defaults to default epm color
palette.
- isInteger
If auto
, automatically determines if r
is
made up of integer values, otherwise TRUE
or FALSE
- ncolors
grain size of color ramp
- breaks
If a custom set of color breaks were used in plotting
r
, pass those color breaks here. This overrides the minmax option.
- minmax
min and max values from which the color ramp will be derived.
If left as NULL
, the min and max of r
will be used.
- locs
locations of tick marks, if NULL
automatically placed. If
this is supplied as a character vector, then the labels will be plotted
verbatim.
- label
text to plot alongside the legend
- cex.axis
size of axis labels
- tcl
length of tick marks (see help for tcl in ?par)
- labelDist
distance from axis to axis labels (passed to mgp
)
- minDigits
minimum number of significant digits for labels