[BioC] Heatmap color Key
James W. MacDonald
jmacdon at med.umich.edu
Mon Mar 31 18:37:08 CEST 2008
s.khalid at qmul.ac.uk wrote:
> Dear all,
> I have recently started using R to draw heatmaps and have worked with
> several heatmaps in different packages(stats,gplots,heatplus etc).
> heatmap.2 using Heatplus does exactly what I am after, except for one
> thing. I would like to move the location of the color key from the
> top left to the bottom of the heatmap, and also alter its size to the
> length of the heatmap.
> Whilst I am able to alter various labels of the colorkey (i.e. x and y
> axis), I am unable to successfully move its position and resize it
> into a rectangle.
While doable, this will require a bit of hacking. The heatmap.2()
function uses layout() to set up the plotting device so you would have
to change the parameters passed to that function in order to change the
plotting regions, then change the plotting order so things get plotted
in the correct region.
If I were to attempt such a thing, I would likely just create another
function by cutting and pasting the relevant portions of heatmap.2()
together in the required order, and adjusting the input to layout() to
make the upper left plotting region large enough for the heatmap image,
and the bottom right region smaller.
> Thank you to anyone who can help me
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
James W. MacDonald, M.S.
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
Ann Arbor MI 48109
More information about the Bioconductor