How to prevent ggmap (with Stamen maps) from misaligning points and features latitudes at low zoom?

不羁的心 提交于 2019-12-12 10:00:03

问题


When using ggmap, Stamen maps and continental-level zooms (zoom=3), the point-latitudes do not align with the map. For example:

library(ggmap)
gc <- geocode('the white house')

qmap('the white house', zoom = 3) + # looks good
  geom_point(aes(x = lon, y = lat), data = gc, colour = 'red')

qmap('the white house', zoom = 3, source = 'stamen', maptype="toner") + # not so good
  geom_point(aes(x = lon, y = lat), data = gc, colour = 'red')

This seems to have been and addressed defect for googlemaps and osm maps - what strategies can I employ to work-around for Stamen?

来源:https://stackoverflow.com/questions/26588244/how-to-prevent-ggmap-with-stamen-maps-from-misaligning-points-and-features-lat

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