Defines a bounding box at a specified zoom level around a set of coordinates, useful for making maps with a consistant aspect ratio
bbox_at_zoom.Rd
This function returns a bounding box at a defined zoom level centered on the mean value of a set of coordinates.
Arguments
- locs
An sf or sp object. The bounding box will be centered on the mid point value of bound box of this object.
- zoom_level
Numeric. Specifies how zoomed in the bounding box should be, eg. 1 = whole world and 4 = 1/4 of world. Defaults to NULL, which will calculate the zoom level required to contain locs