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 values (at least min and max).
lwd
width of the largest line
col
color of the lines
title
title of the legend
title_cex
size of the legend title
val_cex
size of the values in the legend
val_rnd
number of decimal places of the values in
the legend.
frame
whether to add a frame to the legend (TRUE) or not (FALSE)