gmmap with zoom=1 not displaying

两盒软妹~` 提交于 2019-12-18 09:32:12

问题


I am trying to plot a world map using zoom=1 in the code below and it is not displaying, but when I put any other zoom number (for example 4) it is working perfectly...

Any idea why it is not working with zoom=1?

library(ggmap)
map <- qmap('world', zoom = 1)
map

回答1:


according to the documentation here http://cran.r-project.org/web/packages/ggmap/ggmap.pdf

"Map zoom, an integer from 3 (continent) to 21 (building), default value 10 (city).Openstreetmaps limits a zoom of 18, and the limit on stamen maps depends on the maptype. ’auto’ automatically determines the zoom for bounding box specifications, and is defaulted to 10 with center/zoom specifications. Maps of the whole world currently not supported."




回答2:


For a little more flexibility on zooming, check out the leaflet package. It is possible to do full-world maps with that package.



来源:https://stackoverflow.com/questions/28351968/gmmap-with-zoom-1-not-displaying

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