[R-sig-Geo] Maps of continents

Gilles Benjamin Leduc gbl1 at hi.is
Wed Apr 29 13:23:16 CEST 2015


Hi 

So, I would advise you: Find nice shapefiles of the world: 
http://www.diva-gis.org/datadown 
http://spatialanalysis.co.uk/  

Then you load it, either :
 library(maptools)
bordures<-readShapeSpatial("10m_cultural/ne_10m_admin_0_countries.shp") 

Or better:
library(rgdal)
readOGR(dsn="10m_cultural", layer="ne_10m_admin_0_countries")->bordures

then plot with good limits (here France)
plot(bordures,xlim=c( -4.3,9.1),ylim=c(41,51),axes = TRUE, col="grey") 

I hope it helps

Benjamin  
 
 
On Wednesday, April 29, 2015 09:18 GMT, Rui Barradas <ruipbarradas at sapo.pt> wrote: 
 
> Hello,
> 
> This is a really basic question. I'm an R user but completely ignorant 
> on geographical applications.
> I need to graph the 5 Continents, one on each graph. How can I do it? 
> Which packages do I need to have installed and use?.
> 
> Thank you,
> 
> Rui Barradas
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list