# NOT RUN {
choropleth_sf(nl_postcode2, insurance, sum(amount, na.rm = TRUE))
# }
# NOT RUN {
shp_read <- sf::st_read(~/path/to/file.shp)
choropleth_sf(shp_read, insurance, sum(amount, na.rm = TRUE))
# }
Run the code above in your browser using DataLab