Re: [R] Plotting colors on a world map

2009-05-12 Thread dxc13
So, this would allow me to assign a color to each of the 2592 rectangular grid cells on a map of the world? I guess I am having trouble finding a suitable method of doing this. Also, to be able to distinguish country boundaries from the grid lines (which are both black color), could the grid

Re: [R] Plotting colors on a world map

2009-05-12 Thread Jim Lemon
dxc13 wrote: Hi useR's I have created a simple map of the world using the following code: m - map(xlim=c(-180,180), ylim=c(-90,90)) map.axes() I then create a grid of dimension 36x72 using the code: map.grid(m, nx=72, ny=36, labels=FALSE, col=black) This gives 2592 grid cells. In a separate

Re: [R] Plotting colors on a world map

2009-05-11 Thread Duncan Murdoch
On 5/11/2009 10:32 AM, dxc13 wrote: Hi useR's I have created a simple map of the world using the following code: m - map(xlim=c(-180,180), ylim=c(-90,90)) map.axes() I then create a grid of dimension 36x72 using the code: map.grid(m, nx=72, ny=36, labels=FALSE, col=black) This gives 2592 grid