View source: R/map_area_parks.R
map_area_parks | R Documentation |
Return a ggplot map showing parks in and around a selected area.
map_area_parks(
area,
type = c("parks", "vacant lots"),
label = c("parks"),
dist = NULL,
diag_ratio = 0.125,
asp = NULL
)
area |
sf object. Required. |
type |
layers to show on map ("parks" or "vacant lots"). Defaults to both. |
label |
layers to label. Only "parks" is supported. Use any other value to exclude labels. |
dist |
buffer distance in meters. Optional. |
diag_ratio |
ratio to set map extent based diagonal distance of area's
bounding box. Ignored when |
asp |
Aspect ratio of width to height as a numeric value (e.g. 0.33) or character (e.g. "1:3"). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.