geo_choropleth_chart
creates a map comprised of shaded regions (where colour is used to allow visual comparison betweem region) using the specified library, which can be used in the library's %>% workflow. Data must be provided in long format.
leaflet_geo_choropleth_chart
should not be used directly, it generates a map with great circles between points using Leaflet.
1 2 3 4 5 6 | geo_choropleth_chart(spdf = NA, library = "leaflet",
region.border.width = 1, region.border.color = "#000080",
region.value = NA, legend = list(type = "continuous", rcolorbrewer.palette
= , minColor = NULL))
leaflet_geo_choropleth_chart(...)
|
spdf |
A SpatialPolygonsDataFrame containing the data to be displayed |
library |
Which library to use, leaflet is default. |
region.border.width |
Width of region borders, default to 1 |
region.border.color |
Color of region borders, default to #000080 |
region.value |
Column within spdf@data containing the numerical , i.e sub-categorisations. Must be given as formula, i.e. ~country |
... |
all arguments other than |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.