View source: R/map_area_in_areas.R
map_area_in_areas | R Documentation |
Map an area or areas within selected overlapping areas.
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
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.