bbox_polygon | R Documentation |
Really useful function to define bounding box enveloppe
bbox_polygon(shp, buffer = 0)
shp |
sf or sfc object that we want to bound within some box |
buffer |
dist to add around the bounding box to avoid the weird boundary effects |
See https://stackoverflow.com/questions/45719790/create-voronoi-polygon-with-simple-feature-in-r
st_polygon forming a box
## Not run:
shp_trees <- st_read('https://www.donneesquebec.ca/recherche/dataset/bc5afddf-9439-4e96-84fb-f91847b722be/resource/bbdca0dd-82df-42f9-845b-32348debf8ab/download/vdq-arbrepotentielremarquable.geojson')
shp_trees %>% bbox_polygon()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.