View source: R/map_area_in_city.R
map_area_in_city | R Documentation |
Map showing the location of an area within the city.
map_area_in_city(area, area_label = NULL)
area |
sf object with a 'name' column. Required. |
area_label |
area label to replace area name. Optional. |
## Not run:
## Area with a defined label
district2 <- get_area(
type = "council district",
area_id = "2"
)
map_area_in_city(
area = district2,
area_label = "Baltimore's Second Council District"
)
## End(Not run)
## Not run:
## Multiple areas in a single map
selected_se_neighborhoods <- get_area(
type = "neighborhood",
area_name = c("Upper Fells Point", "Fells Point", "Canton")
)
map_area_in_city(
area = selected_se_neighborhoods,
area_label = "Southeast Baltimore neighborhoods"
)
## End(Not run)
## Not run:
## Area with a defined map title
canton_industrial <- get_area(
type = "neighborhood",
area_name = "Canton Industrial Area"
)
map_area_in_city(area = canton_industrial)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.