[R] about heatmap

2010-05-31 Thread 孟欣
Hi all: As to the heatmap function, the default style is red and yellow,and red refers to low level and yellow refers to high level. How can I change the style to the contrary: red refers to high level and yellow refers to low level? Thanks a lot! My best [[alternative HTML version

Re: [R] about heatmap

2010-05-31 Thread Joris Meys
Hi, Take a look at the heatmap.2 function in the library gplots, and the brewer.pal in the library RColorBrewer. With this combination you have a far bigger flexibility on the colors and the output, plus you get a colorcoded legend. There used to be a bug in that function distorting the legend

Re: [R] about heatmap

2010-05-31 Thread Jorge Ivan Velez
Hi there, Take a look at http://www2.warwick.ac.uk/fac/sci/moac/currentstudents/peter_cock/r/heatmap/ HTH, Jorge On Mon, May 31, 2010 at 3:54 AM, 孟欣 wrote: Hi all: As to the heatmap function, the default style is red and yellow,and red refers to low level and yellow refers to high

Re: [R] about heatmap

2010-05-31 Thread sheng zhao
Hi : try this: col=rev(your color) Regards, Sh.Z On Mon, May 31, 2010 at 2:16 PM, Jorge Ivan Velez jorgeivanve...@gmail.comwrote: Hi there, Take a look at http://www2.warwick.ac.uk/fac/sci/moac/currentstudents/peter_cock/r/heatmap/ HTH, Jorge On Mon, May 31, 2010 at 3:54 AM, 孟欣