How to get a map with certain minimum and maximum limits of latitude and longitude using ggmap in R?
I am new to using ggmap and now I was able to implement this:
center <- c(mean(src$longitude),mean(src$latitude)) zoom <- min(MaxZoom(range(src$latitude),range(src$longitude))) hdf <- get_map(location=center,zoom=zoom)
The help file says that the location can be referred to as an address, a longitude / latitude pair (in that order), or a left / lower / right / top bounding box. I could not find useful material on implementing the restrictive framework for ggmap online.
source share