[R] color palette heatmap

Jim Lemon jim at bitwrit.com.au
Thu Feb 11 03:21:22 CET 2010

On 02/11/2010 06:14 AM, joonR wrote:
> Hi,
> I'm kinda new of the R world.
> I need to use the heatmap or heatmap.2 function to plot correlation values.
> 2 questions:
> - how can I specify a color palette? (would like to have a transition from
> blue(-1) to white(0) to red(1))
> - how can I use heatmap.2 imposing a specific order (like hclust.order)?
>    I mean, I don't want heatmap.2 to re-cluster/re-order my data but just to
> plot them according to a specified (by me) order (I tried Rowv = hc$order
> where hc is an hclust object, but without success)
> can you help me?
Hi joonR,

I don't know about heatmap.2, but maybe if you look at the "Association 
plot" example for color2D.matplot (plotrix)...


More information about the R-help mailing list