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.