View source: R/layer_area_mask.R
layer_area_mask | R Documentation |
This function is deprecated because the functionality has been incorporated
into the improved maplayer::layer_mask()
function which uses a similar set
of parameters.
Returns a mask for an area or areas as an sf
object. This function
can be called by any function that uses the logical mask
parameter.
layer_area_mask(
area = NULL,
diag_ratio = NULL,
dist = NULL,
asp = NULL,
crs = pkgconfig::get_config("mapbaltimore.crs", 2804),
mask_bbox = NULL,
...
)
area |
|
diag_ratio |
ratio to set map extent based diagonal distance of area's
bounding box. Ignored when |
dist |
buffer distance in meters. Optional. |
asp |
Aspect ratio of width to height as a numeric value (e.g. 0.33) or character (e.g. "1:3"). |
crs |
Coordinate reference system of bounding box to return |
mask_bbox |
|
... |
Additional parameters to pass to |
ggplot2::geom_sf()
function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.