add_legend | R Documentation |
Add a legend to the deckgl widget
add_legend(
deckgl,
colors,
labels,
title = NULL,
pos = "top-right",
style = NULL,
...
)
deckgl |
A deckgl widget object. |
colors |
The colors of the legend items. |
labels |
The labels corresponding to the colors of the legend items. |
title |
The title of the legend. |
pos |
The position of the control. Possible values are |
style |
A |
... |
not used |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.