How to show all GO terms for axis names in heatmap.2
0
0
Entering edit mode
3.5 years ago
v.johnson ▴ 30

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 • 1.3k views
ADD COMMENT
0
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

Traffic: 1957 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