View source: R/func_latlon_to_bbox.R
latlon_to_bbox | R Documentation |
Converts a lat lon pair of coordinates to a roughly square bounding box
latlon_to_bbox(latlon, res_in_km = 100)
latlon |
lat lon pair as a vector |
res_in_km |
rough resolution in kilometers |
bounding box of c(lowerleftlon,lowerleftlat,upperrightlon,upperrightlat), which can be passed directly to ggmap::get_stamenmap
W. S. Drysdale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.