Add a legend to the deckgl widget
add_legend(
deckgl,
colors,
labels,
title = NULL,
pos = "top-right",
style = NULL,
...
)
A deckgl widget object.
The colors of the legend items.
The labels corresponding to the colors of the legend items.
The title of the legend.
The position of the control. Possible values are top-left
, top-right
,
bottom-right
and bottom-left
.
A cssText
string that will modefiy the default style of the element.
not used