[R-sig-Geo] Antarctica map

Monika Wagner mw.moni.wagner at gmail.com
Fri Oct 31 11:08:23 CET 2014


Hi,

I've a problem mapping the antarctica with data from
http://www.gadm.org/download. I used this code:

library(ggplot2)

load("ATA_adm0.RData")
an<-gadm

antmap<-ggplot()+
  geom_path(data=an,aes(x=long,y=lat,group=group))+
  scale_y_continuous(limits=c(-90,-50)) +
  scale_x_continuous(limits=c(-175,186))

antmap + coord_map("ortho", orientation=c(-90, 0, 0))

Apparently, there is data missing, thus the plot shows some kind of dud
coordinate at the center.  Can I somehow delete it and connect the
"beginning" and "end" of the coast line?

Thanks!
Monika

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list