R应用程序没有显示ggmap

时间:2014-06-17 08:08:44

标签: r shiny ggmap shiny-server

我正在使用R app,我的serv.R文件

绘制ggmap
mapImageData1 <- get_map(location = c(lon = -0.016179, lat = 51.538525),
                             color = "color",
                             source = "google",
                             maptype = "satellite",
                             zoom = 17)

    p<-ggmap(mapImageData1,
          extent = "device",
          ylab = "Latitude",
          xlab = "Longitude")
    print(p)

在UI上显示以下错误

Error:cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=51.538525,-0.016179&zoom=17&size=%20640x640&scale=%202&maptype=satellite&sensor=false'

在应用程序文件夹&#39; ggmapTemp.png&#39;正在生成,但它是0字节。

同样在日志中显示:

Warning in download.file(url, destfile = destfile, quiet = !messaging, mode = "wb") :
  unable to connect to 'maps.googleapis.com' on port 80.
Error in download.file(url, destfile = destfile, quiet = !messaging, mode = "wb") : 
  cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=51.538525,-0.016179&zoom=17&size=%20640x640&scale=%202&maptype=satellite&sensor=false'

我已通过r控制台检查了互联网。 任何人都有任何想法

提前致谢..

0 个答案:

没有答案