我试图使用ggmap qmap函数(http://www.inside-r.org/packages/cran/ggmap/docs/qmap)。
我尝试使用ggmap qmap函数。qmap(location = 'baylor university', zoom = 14, maptype = 'watercolor', source = 'stamen')
并且收到了以下错误:
qmap(location ='贝勒大学',缩放=14,地图类型= '水彩画',来源='stamen')从URL获取的地图: http://maps.googleapis.com/maps/api/staticmap?center=baylor+university&zoom=14&size=%20640x640&maptype=terrain&sensor=false 谷歌地图API服务条款: http://developers.google.com/maps/terms 从URL获取的信息: http://maps.googleapis.com/maps/api/geocode/json?address=baylor+university&sensor=false 谷歌地图API服务条款: http://developers.google.com/maps/terms 在readPNG(destfile)中出现错误: 文件不是PNG格式
注意:本文中保留了HTML标签。
?ggmap
中找到的示例代码?你应该注意到,?ggmap
中找到的示例代码被## Not run:
/\dontrun{}
包围。根据这个SO答案的说法,这意味着代码“不应在示例函数中执行”。要么是因为它太耗时,要么是因为它需要用户输入。我怀疑后者是这个例子的情况。 - Eric Fail