I have to create and export multiple maps that zoom to particular areas of my county. The issue I'm having is that zoom level 12 is too far away, and zoom level 13 is too close. Is there a way to set specific boundaries for a png export of a map through code?
library(leaflet)
library(mapview)
northmap<-leaflet() %>% addTiles() %>%
setView(lng = -90.264027, lat = 38.803011, zoom = 12) %>%
addProviderTiles("Esri")
mapshot(northmap, file = "northmap1.png",
remove_controls = c("homeButton", "zoomControl"))