This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to show all GO terms for axis names in heatmap.2

I am producing a heatmap using RNAseq data and using heatmap.2 for my plot production. However the full GO terms keep on being cut off is there anyway to prevent this? Thank you

> png("plot_2.png", height = 900, width = 900)
heatmap.2(highly_variable_lcpm, 
          col=rev(morecols(50)),
          trace="column", 
          main="Top 30 most variable genes across LR versus CN samples",
          ColSideColors=col.cell,scale="row")
dev.off()

plot_2

r

You should be able to use the rowCex parameter to make the row labels smaller. I'd suggest switching to ComplexHeatmap if it's not a big deal to change packages. It's much more customizable and looks a LOT better too.

0 answers

No answers yet.

Log in to answer this question.