bbox_ply | R Documentation |
Utility function to create polygon from bounding box
bbox_ply(lon_min, lat_min, lon_max, lat_max)
lon_min |
longitude, minimum |
lat_min |
latitude, minimum |
lon_max |
longitude, maximum |
lat_max |
latitude, maximum |
Returns a spatial feature sf polygon.
# Florida Keys area
lon = -81.3; lat = 24.5; w = 10
bbox_ply(lon - w, lat - w, lon + w, lat + w)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.