Heatmap color Key
1
1
Entering edit mode
@skhalidqmulacuk-2727
Last seen 6.6 years ago
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
Heatplus Heatplus • 3.3k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 18 hours ago
United States
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 COMMENT

Login before adding your answer.

Traffic: 466 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6