Description Usage Arguments Value Author(s) Examples
Takes an object produced by choropleth_sf()
, and creates the correspoding choropleth map.
1 2 | choropleth_ggplot2(sf_object, value = output, n = 7, dig.lab = 2,
legend_title = "Clustering")
|
sf_object |
Simple features object. Note that shapefiles consist of more than one file, all with identical basename, which should reside in the same directory. |
value |
Column to shade the polygons. |
n |
Number of clusters. Default is 7. |
dig.lab |
Number of digits in legend. Default is 2. |
legend_title |
Title of legend. |
ggplot map
Martin Haringa
1 2 | test <- choropleth_sf(nl_postcode2, insurance, sum(amount, na.rm = TRUE))
choropleth_ggplot2(test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.