Question: Adjust column labels in Heatmap.3
gravatar for komal.rathi
2.8 years ago by
United States
komal.rathi50 wrote:

The following is my code for heatmap.3:

heatmap.3(x = as.matrix(res), dist.FUN = dist2, scale = 'row', color.FUN = col_ylgnbu, cex.main = 2, trace = 'none', srtCol = 45, adjCol = c(1,0.1), main = paste(title), key = T, cexRow = 2, cexCol = 1)

I get the following heatmap using this code:

Is there a way to adjust the column labels so that they do not overlap the heatmap? This post has been cross-posted here but I thought I'd post it here too.


ADD COMMENTlink modified 2.8 years ago by James W. MacDonald47k • written 2.8 years ago by komal.rathi50

The heatmap package to end all heatmap packages seems to be ComplexHeatmap. I'd invest some time into learning that. The extra added bonus would be that you can post support questions to this site ;-)

That having been said, I think tweaking axis labels and plot margins is always going to be a pain ...

ADD REPLYlink written 2.8 years ago by Steve Lianoglou12k
gravatar for James W. MacDonald
2.8 years ago by
United States
James W. MacDonald47k wrote:

If you are talking about the heatmap.3() function from the GMD package, then you should direct your queries to R-help (, as that is a CRAN package, not Bioconductor.

ADD COMMENTlink written 2.8 years ago by James W. MacDonald47k

Oh, I am sorry! I totally forgot that this is a support site for Bioconductor packages. Thanks!

ADD REPLYlink written 2.8 years ago by komal.rathi50
Please log in to add an answer.


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