Re: [R] Plot colour according to column

2011-02-09 Thread anoopmj
Hi Jim, Thanks a lot for the response. I finally decided to do it with ggplot2 library, qplot and layers. It works pretty well, although I did not know how to get the time working... so thanks! Anoop -- View this message in context:

Re: [R] Plot colour according to column

2011-02-09 Thread Tsjerk Wassenaar
Hi Anoop, Not sure whether it's too late for you, but is this along the lines of what you want?: x-0:1000 y-sin(x/500)+rnorm(1001)/10 z-cos(x/500)+rnorm(1001)/100 plot(x,y,col=rgb(1,(z-min(z))/(max(z)-min(z)),0)) Or possibly like: plot(x,y,col=rainbow(256)[255*(z-min(z))/(max(z)-min(z))])

[R] Plot colour according to column

2011-02-08 Thread anoopmj
Hi, I am trying to plot several columns in different graphs in columns and rows. The first column of my data file is the time, and the third is the 'elevation angle' with 19 different numbers. I would like to plot the rest of the columns with the x axis as time and the individual angles in

Re: [R] Plot colour according to column

2011-02-08 Thread Jim Lemon
On 02/08/2011 09:14 PM, anoopmj wrote: Hi, I am trying to plot several columns in different graphs in columns and rows. The first column of my data file is the time, and the third is the 'elevation angle' with 19 different numbers. I would like to plot the rest of the columns with the x axis

Re: [R] Plot colour according to column

2011-02-08 Thread Jim Lemon
On 02/09/2011 06:49 PM, Jim Lemon wrote: On 02/08/2011 09:14 PM, anoopmj wrote: Hi, I am trying to plot several columns in different graphs in columns and rows. The first column of my data file is the time, and the third is the 'elevation angle' with 19 different numbers. I would like to plot