make_thematic_map: Make a thematic map.

Description Usage Arguments Value

Description

Makes a quick thematic (choropleth) map from data provided, with a fixed colour scheme.

Usage

1
2
3
make_thematic_map(.data, fill_var, .map = NULL, join_by = NULL,
  remove_na = TRUE, background_map = NULL, breaks = NULL,
  break_name_expr = "\\d+\\.?\\d+(?=\\])", scale_name = NULL)

Arguments

.data

DataFrame or sf DataFrame with the data to plot.

fill_var

column to map to the fill aesthetic.

.map

sf DataFrame of the map to fill, if '.data“ is not already an sf object.

join_by

column or dplyr join specification to join '.data“ and '.map by'.

remove_na

whether to remove shapes that have NA values or not.

background_map

sf DataFrame of a map to plot as the background.

breaks

number of vector of breaks for the colour scale of 'fill_var'.

break_name_expr

regex to clean up break names with.

scale_name

name for the fill scale label.

Value

ggplot thematic map


barnabywalker/bazr documentation built on July 2, 2019, 12:13 a.m.