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))])
M
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:
http://r.789695.n4.nabble.com/Plot-colour-according-to-column
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
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 as
4 matches
Mail list logo