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 when
breaks with unequal intervals were used, but I've adapted the function
myself to work also in that case. If you need it, feel free to contact me.

Cheers
Joris

On Mon, May 31, 2010 at 9:54 AM, 孟欣 lm_meng...@163.com 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 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 deleted]]

 __
 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, reproducible code.




-- 
Joris Meys
Statistical Consultant

Ghent University
Faculty of Bioscience Engineering
Department of Applied mathematics, biometrics and process control

Coupure Links 653
B-9000 Gent

tel : +32 9 264 59 87
joris.m...@ugent.be
---
Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

[[alternative HTML version deleted]]

__
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, reproducible code.


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 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 deleted]]

 __
 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, reproducible code.


[[alternative HTML version deleted]]

__
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, reproducible code.


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, 孟欣  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 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 deleted]]
 
  __
  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, reproducible code.
 

[[alternative HTML version deleted]]


 __
 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, reproducible code.



[[alternative HTML version deleted]]

__
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, reproducible code.