Description Usage Arguments Examples
Choropleth map based on geojson data
1 | choropleth(fig, mapdata, group = NULL, pal = NULL, na = NA)
|
fig |
a leaflet object to which the choropleth polygons will be added. |
mapdata |
geojson (sf or sp) object. Should contain columns n, label, color. |
na |
- value with which to replace NAs in n. |
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.