Re: [R] plotting a grid with color on a map

2009-05-13 Thread dxc13
Thanks, Jim. This seems to be what I am looking for. Just have to fine tune the colors to get some distinctive greens, blues, yellows and oranges in there and I should be good to go. Jim Lemon-2 wrote: > > It was the NAs that fooled color2D.matplot. This gets your colors, > although not exac

Re: [R] plotting a grid with color on a map

2009-05-13 Thread Jim Lemon
It was the NAs that fooled color2D.matplot. This gets your colors, although not exactly what you want. Look at the help for color2D.matplot to get that. I think fiddling with the x and y limits on the map() call will get the positions right. temp1<-read.table("time1test.dat",header=TRUE) libra

Re: [R] plotting a grid with color on a map

2009-05-13 Thread Jim Lemon
Oops, forgot to include: library(plotrix) Jim __ R-help@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

Re: [R] plotting a grid with color on a map

2009-05-13 Thread Jim Lemon
dxc13 wrote: Hi all, I have posted similar questions regarding this topic, but I just can't seem to get over the hump and find a straightforward way to do this. I have attached my file as a reference. Basically, the attached file is a 5 degree by 5 degree grid of the the world (2592 cells), most

Re: [R] plotting a grid with color on a map

2009-05-13 Thread Ray Brownrigg
dxc13 wrote: Hi all, I have posted similar questions regarding this topic, but I just can't seem to get over the hump and find a straightforward way to do this. I have attached my file as a reference. Basically, the attached file is a 5 degree by 5 degree grid of the the world (2592 cells), most

[R] plotting a grid with color on a map

2009-05-12 Thread dxc13
Hi all, I have posted similar questions regarding this topic, but I just can't seem to get over the hump and find a straightforward way to do this. I have attached my file as a reference. Basically, the attached file is a 5 degree by 5 degree grid of the the world (2592 cells), most of them are N