position of the legend, one of "topleft", "top",
"topright", "right", "bottomright", "bottom", "bottomleft",
"left", "interactive" or a vector of two coordinates in map units
(c(x, y)).
val
vector of categories.
pal
a set of colors
pt_pch
pch of the symbols (0:25)
pt_cex
cex of the symbols
border
type = "prop": color of the symbols borders
lwd
width of the symbols borders
title
title of the legend
title_cex
size of the legend title
val_cex
size of the values in the legend
pt_cex_na
cex of the symbols for missing values
pt_pch_na
pch of the symbols for missing values
col_na
color for missing values
no_data
if TRUE a "missing value" box is plotted
no_data_txt
label for missing values.
frame
whether to add a frame to the legend (TRUE) or not (FALSE)