powered by
Takes an object produced by choropleth_sf(), and creates the correspoding choropleth map.
choropleth_sf()
choropleth_ggplot2(sf_object, value = output, n = 7, dig.lab = 2, legend_title = "Class")
object of class sf
column to shade the polygons
number of clusters (default is 7)
number of digits in legend (default is 2)
title of legend
ggplot map
# NOT RUN { test <- choropleth_sf(nl_postcode2, insurance, sum(amount, na.rm = TRUE)) choropleth_ggplot2(test) # }
Run the code above in your browser using DataLab