Save and load maps for ggmap to use without internet access

المشرف العام

Administrator
طاقم الإدارة
I would like to use the ggmap package to download and display maps. Unfortunately I have some firewall restrictions preventing R from accessing the internet directly. The error I get from get_map is

Error in download.file(url, destfile = tmp, quiet = !messaging, mode = "wb") : cannot open URL 'http://maps.googleapis.com/maps/api/staticmap?center=34.464936,-116.293581&zoom=6&size=640x640&scale=2&maptype=roadmap&language=en-EN&sensor=false' In addition: Warning message: In download.file(url, destfile = tmp, quiet = !messaging, mode = "wb") : cannot open: HTTP status was '403 Forbidden' Is there a way to manually download and save the map so I can then load and use it with ggmap/ggplot?

Alternatively, is there another way I could use to plot GPS data on maps? I am new to this kind of data, so any help is very much appreciated!



أكثر...
 
أعلى