Re: [R] to represent color range on plot segment

2011-08-29 Thread karthicklakshman
Dear Jim, Thank you very much for your code. There is no problem with df[df[,2]>0,3]<-color.scale(df[df[,2]>0,2],c(1,0),1,c(0,1)) but the other has an error message if there is a negative value, like > df[df[,2]<0,3]<-color.scale(df[df[,2]<0,2],1,c(1,0),c(1,0)) Error in rgb(reds, greens, blues) :

Re: [R] to represent color range on plot segment

2011-08-29 Thread Jim Lemon
On 08/28/2011 04:07 AM, karthicklakshman wrote: Dear R community, With an advantage of being "NEW" to R, I would like to post a very basic query here, I am in need of representing gene expression data which ranges from -0.09 to +4, on plot "segment". please find below the data df, the expressio

Re: [R] to represent color range on plot segment

2011-08-27 Thread jim holtman
?colorRamp On Sat, Aug 27, 2011 at 2:07 PM, karthicklakshman wrote: > Dear R community, > > With an advantage of being "NEW" to R, I would like to post a very basic > query here, > > I am in need of representing gene expression data which ranges from -0.09 to > +4, on plot "segment". please find

Re: [R] to represent color range on plot segment

2011-08-27 Thread Dennis Murphy
On Sat, Aug 27, 2011 at 11:07 AM, karthicklakshman wrote: > Dear R community, > > With an advantage of being "NEW" to R, I would like to post a very basic > query here, Really? I found two posts with your name on it dating from October and November of 2010. http://r-project.markmail.org/search/?q

[R] to represent color range on plot segment

2011-08-27 Thread karthicklakshman
Dear R community, With an advantage of being "NEW" to R, I would like to post a very basic query here, I am in need of representing gene expression data which ranges from -0.09 to +4, on plot "segment". please find below the data df, the expression values are in df[,2]. kindly help me with the co