[BioC] ggplots2 - heatmap2 colour labels

Paolo Kunderfranco paolo.kunderfranco at gmail.com
Tue Oct 2 14:56:39 CEST 2012


Dear All,
I would like to add colours to my heatmap, for instance I have a set
of genes, some are up-regulated and some are down-regulated

example
this is my data.matrix
>x
Pfdn5         11.73  1.000
Aqp1           9.25  1.000
Lims2         11.15  1.000
Chrac1         1.00 13.990
Sdhb           1.00  7.460
Phpt1          8.28  1.000
Dhrs7c        10.93  1.000
Mrpl30         1.00  7.690
Mrps35        11.15  1.000
Mlf1          18.50  1.000
Atp5h          9.29  1.000


heatmap.2(x, Colv=F, Rowv=F,cexCol=0.5, main="test",
cexRow=0.3,scale="row", col=greenred(75), key=F, trace="none")



I would like to plot the first 3 labels in red and the rest in blue,
is it possible with heatmap.2 function?
Thanks,
Paolo



More information about the Bioconductor mailing list