Skip to content
Prev 173569 / 398503 Next

Map using projection

I think what you are missing is that the default map database is "world".

If you use:
     library(maps)
     require("mapproj")
     longlatLimit<-c(-107,-93,40,52)
     par(plt=c(0,1,0,1),cex=1,cex.main=1)  #Set plotting parameters
     map(regions="USA", projection="azequalarea",
type="n",xlim=longlatLimit[1:2],ylim=longlatLimit[3:4])
     bound<-c(floor(longlatLimit[1]), ceiling(longlatLimit[2]),
floor(longlatLimit[3]), ceiling(longlatLimit[4]))
     map.grid(lim=bound,col="light grey")

I think you will get what you want (but what you want is not exactly clear).

[I am not sure why this happens, but it seems to be an artifact of the projection code.]

[All your examples have been very confusing, since you talk about plotting the "states", 
but in fact your example code plots only a grid.]

HTH
Ray Brownrigg
Dr. Alireza Zolfaghari wrote: