map_council_continuous: Council map starters

View source: R/map_council.R

map_council_continuousR Documentation

Council map starters

Description

Building on functionality for creating maps when mapping continuous data, map_council_continuous() could save some work.

Usage

map_council_continuous(
  df,
  .fill,
  .lwd = 0.5,
  .low = "#8c510a",
  .mid = "white",
  .high = "#01665e",
  .midpoint = 0
)

Arguments

df

The sf object to be mapped

.fill

For continuous data, the variable (column name) which should be used to fill polygons

.lwd

numeric, line width of polygons, default setting is 0.5.

.low

character, color name or hex code to fill the lowest number. Default is "#8c510a" (brown)

.mid

character, color name or hex code to fill the midpoint number. Default is "white"

.high

character, color name or hex code to fill the highest number. Default is "#01665e" (teal)

.midpoint

numeric, midpoint of a diverging color scheme. Default is 0.

Value

a ggplot2 plot

See Also

Other aesthetics: blue_cascade, colors, council.pal(), council_layout(), council_pal2(), scale_color_council(), scale_fill_council(), theme_council()

Examples

## Not run: 
library(ggplot2)
library(councilR)

fetch_ctu_geo() %>%
  map_council_continuous(.fill = ALAND, .midpoint = 5e7)

## End(Not run)


Metropolitan-Council/councilR documentation built on March 30, 2024, 2:43 a.m.