Search
Question: Adjust column labels in Heatmap.3
0
2.6 years ago by
komal.rathi40
United States
komal.rathi40 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.

Thanks!

modified 2.6 years ago by James W. MacDonald46k • written 2.6 years ago by komal.rathi40
1

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 ...

0
2.6 years ago by
United States
James W. MacDonald46k wrote:

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