y: missing, or positive integer, or character (variable or layer name) indicating the layer(s) to be plotted. If x is a SpatRaster, you can select multiple layers
col: character. Vector of colors or color generating function
alpha: Number between 0 and 1 to set the transparency for lines (0 is transparent, 1 is opaque)
fill: Number between 0 and 1 to set the transparency for polygon areas (0 is transparent, 1 is opaque)
tiles: character or NULL. Names of background tile providers
wrap: logical. if TRUE, tiles wrap around
maxcell: positive integer. Maximum number of cells to use for the plot
stretch: NULL or character ("lin" or "hist") to stretch RGB rasters. See plotRGB
legend: character to indicate the legend position ("bottomleft", "bottomright", "topleft" or "topright") or NULL to suppress the legend
main: character. Title for the legend. The length should be 1 if x is a SpatVector and length nlyr(x) if x is a SpatVector
shared: logical. Should the legend be the same for all rasters (if multiple layers of SpatRaster x are mapped)
map: leaflet object
...: additional arguments for drawing points, lines, or polygons passed on the the relevant leaflet function
border: character. Color for the polygon borders
collapse: logical. Should the layers "control" panel be collapsed?
split: logical. If TRUE a check-box is created to toggle each value in y (If x is a SpatVector)
cex: numeric. point size magnifier. See par
lwd: numeric, line-width. See par
popup: logical. Should pop-ups be created?
label: logical. Should mouse-over labels be added?
panel: logical. Should SpatRaster layers be shown as a panel"
type: character. Type of map/legend. One of "classes", or "interval". If not specified, the type is chosen based on the data. Use "" to suppress the legend
breaks: numeric. Either a single number to indicate the number of breaks desired, or the actual breaks. When providing this argument, the default legend becomes "interval"
breakby: character or function. Either "eqint" for equal interval breaks, "cases" for equal quantile breaks. If a function is supplied it should take a single argument (a vector of values) and create groups
sort: logical. If TRUE legends with character values are sorted. You can also supply a vector of the unique values, in the order in which you want them to appear in the legend
decreasing: logical. If TRUE, legends are sorted in decreasing order