choropleth_ggplot2: Map simple feature object using ggplot2

Description Usage Arguments Value Author(s) Examples

View source: R/map_ggplot2.R

Description

Takes an object produced by choropleth_sf(), and creates the correspoding choropleth map.

Usage

1
2
choropleth_ggplot2(sf_object, value = output, n = 7, dig.lab = 2,
  legend_title = "Clustering")

Arguments

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.

Value

ggplot map

Author(s)

Martin Haringa

Examples

1
2
test <- choropleth_sf(nl_postcode2, insurance, sum(amount, na.rm = TRUE))
choropleth_ggplot2(test)

MHaringa/nlmaps documentation built on May 19, 2019, 9:40 p.m.