I\'m trying to draw a world map using ggplot
. My code is in my gist file. The output is correct when I don\'t use coord_map
but very strange when I use
I had a similar problem before, due to longitude values outside the range [-180,180]. In your example the data do not have this problem but my trick seems to work also here. In my case I just used 'xlim' to exclude the problematic data.
This solution seems to work in your case also (I used the code from your gist):
map+coord_map(xlim=c(-180,180))
It produces the following map:
There is still a problem with Antarctica, you can also consider clipping it too if you don't need this area:
map+coord_map(xlim=c(-180,180), ylim=c(-60, 90))