I have a list of locations and values, and i am trying to add these locations to a map.
To do this I am using the get_map function from the ggmap package to download maps from google.
This is my code:

ggmap(get_map(location = c(left = 35.13, bottom = 31.72, right = 35.25 , top = 31.84)))

This is what i get: enter image description here

有帮助吗?

解决方案

I think this is related to: https://stackoverflow.com/questions/21411178/google-static-terrain-maps-with-black-rectangles and seems to be an issue with the Google Static Maps api which ggmaps uses to generate these maps. I'm guessing the layer data is unavailable for some reason and it's defaulting to black.

A bug report has been started by the poster of that question which you can add your example to.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top