Description Usage Arguments See Also Examples
Constructs legend elements into the correct JSON format for plotting on the map
1 | mapdeck_legend(legend_elements)
|
legend_elements |
vector of legend elements (made from legend_element) |
legend_element
1 2 3 4 5 6 7 8 9 | l1 <- legend_element(
variables = c("a","b")
, colours = c("#00FF00","#FF0000")
, colour_type = "fill"
, variable_type = "category"
, title = "my title"
)
mapdeck_legend(l1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.