Skip to contents

Map an area or areas within selected overlapping areas.

Usage

map_area_in_areas(
  area,
  type = c("neighborhood", "council district", "legislative district",
    "congressional district", "planning district", "police district", "csa"),
  show_area = TRUE,
  show_label = FALSE,
  background = NULL
)

Arguments

area

sf object. Required

type

Type of area to map. Supports the same types as the get_area function.

show_area

Logical. Default TRUE.

show_label

Logical. Default FALSE. If TRUE, label areas with ggplot2::geom_sf_label()

background

ggplot layer. Default NULL. Passing a ggplot2 layer may be necessary to have an appropriate background for the congressional district maps.