Search
Question: Heatmap color Key
1
gravatar for s.khalid@qmul.ac.uk
10.7 years ago by
s.khalid@qmul.ac.uk50 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. Thank you to anyone who can help me Khalid
ADD COMMENTlink modified 10.7 years ago by James W. MacDonald48k • written 10.7 years ago by s.khalid@qmul.ac.uk50
0
gravatar for James W. MacDonald
10.7 years ago by
United States
James W. MacDonald48k wrote:
Hi Khalid, 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. See ?layout. Best, Jim > > Thank you to anyone who can help me > > Khalid > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor -- James W. MacDonald, M.S. Biostatistician Affymetrix and cDNA Microarray Core University of Michigan Cancer Center 1500 E. Medical Center Drive 7410 CCGC Ann Arbor MI 48109 734-647-5623
ADD COMMENTlink written 10.7 years ago by James W. MacDonald48k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 195 users visited in the last hour