ggmap::get_map doesn't allow the exact specification of my map's corners?

佐手、 提交于 2019-11-30 11:45:31

If you want to work with boundaries, it is better to use OpenStreetMap than GoogleMaps. Setting boundaries for GoogleMaps in ggmap doesn't work. Instead it will make an estimate of the centerpoint.

You can specify the source by including source = "osm" in your get_map call.

With:

mymap <- get_map(location = c(13.2,52.35,13.5,52.50), source = "osm")

ggmap(mymap)

you get:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!