add_legend_pal | R Documentation |
Add a legend to the deckgl widget using a palette func
add_legend_pal(deckgl, pal, ...)
deckgl |
A deckgl widget object. |
pal |
A palette function that is used to create the legend elements (colors and labels) automatically. |
... |
Parameters that are passed to |
col_numeric
et cetera for how to create a palette function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.