latlon_to_bbox: latlon_to_bbox

View source: R/func_latlon_to_bbox.R

latlon_to_bboxR Documentation

latlon_to_bbox

Description

Converts a lat lon pair of coordinates to a roughly square bounding box

Usage

latlon_to_bbox(latlon, res_in_km = 100)

Arguments

latlon

lat lon pair as a vector

res_in_km

rough resolution in kilometers

Value

bounding box of c(lowerleftlon,lowerleftlat,upperrightlon,upperrightlat), which can be passed directly to ggmap::get_stamenmap

Author(s)

W. S. Drysdale


willdrysdale/wsdmiscr documentation built on Aug. 26, 2023, 12:31 a.m.