Create a list of settings for a legend.
amLegend(
position = "bottom",
maxHeight = NULL,
scrollable = FALSE,
maxWidth = 220,
itemsWidth = 20,
itemsHeight = 20
)
A list of settings for a legend.
legend position
maximum height for a horizontal legend
(position = "bottom"
or position = "top"
)
whether a vertical legend should be scrollable
maximum width for a vertical legend
(position = "left"
or position = "right"
); set it to
NULL
for no limit
width of the legend items
height of the legend items