Re: [R] Map using projection

2009-03-17 Thread Dr. Alireza Zolfaghari
Thanks Ray On Thu, Mar 12, 2009 at 11:01 PM, Dr. Alireza Zolfaghari ali.zolfagh...@gmail.com wrote: Hi list, I have a real problem with plotting US state map. When I try to plot the northern state, there will be some blank space in the top of graph (see case 1 example), and when I plot

Re: [R] Map using projection

2009-03-14 Thread Ray Brownrigg
OK, the underlying problem is that the projection code (i.e. the mapproj package plus some parts of the maps package) does not clip its output to the specified limits. Let me explain: 1) the maps databases are made up of line segments which are combined to form polygons 2) when you call map()

Re: [R] Map using projection

2009-03-13 Thread Ray Brownrigg
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,

[R] Map using projection

2009-03-12 Thread Dr. Alireza Zolfaghari
Hi list, I have a real problem with plotting US state map. When I try to plot the northern state, there will be some blank space in the top of graph (see case 1 example), and when I plot southern states, there will be a blank space in the bottom of plot (see case 2). I spent almost 2 days to