Description Usage Arguments See Also Examples
calc_zoom can calculate a zoom based on either (1) a data frame with longitude and latitude variables, (2) a longitude range and latitude range, or (3) a bounding box (bbox specifcation). The specification for (1) is identical to that of most R functions, for (2) simply put in a longitude range into lon and a latitude range into lat, and for (3) put the bounding box in for the lon argument.
1 |
lon |
longitude, see details |
lat |
latitude, see details |
data |
(optional) a data frame containing lon and lat as variables |
adjust |
number to add to the calculated zoom |
f |
argument to pass to make_bbox |
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.