[R] map geographical boundaries

Ray Brownrigg Ray.Brownrigg at mcs.vuw.ac.nz
Mon Nov 3 19:47:22 CET 2008


It's not clear exactly what you want, but try something like:

library(maps)
map("world", xlim=c(35, 100), ylim=c(-5, 35), interior=FALSE)

lat= c(-5,0,5,10)
long=c(35,40,45,50)
points(long, lat,  col=2)

HTH,
Ray Brownrigg

On Tue, 04 Nov 2008, Yogesh Tiwari wrote:
> Hello,
> I want to crate a blanck geographical map showing continent boundary of 
> region:
>
> latitude = -5:35
> longitude = 35:100
>
> If we create data like:
> lat= -5,0,5,10,......
> long=35,40,45,50,.........
>
> Then how to map (long,lat) and create a map plot.
>
> Many thanks,
>
> Yogesh
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html and provide commented, minimal,
> self-contained, reproducible code.



More information about the R-help mailing list