expand_bbox | R Documentation |
Extract the bounding box from an object and optionally expand it. This can
take an sf
or a tibble
with lat and lon columns.
expand_bbox(.data, exp_factor = 0.1, lon = "lon", lat = "lat", crs = 7844L)
.data |
( |
exp_factor |
(numeric; default = 0.1) the expansion factor |
lon |
(character [optional]; default = 'lon') name of longitude column if a data.frame |
lat |
(character [optional]; default = 'lat') name of latitude column if a data.frame |
crs |
(numeric [optional]; default = 7844) CRS if converting data.frame to sf |
A named bounding box vector with names "left", "bottom", "right" and "top".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.