Adjust width of annotations in pheatmap
0
0
Entering edit mode
5.5 years ago

Is there a way to adjust the width of row annotations in pheatmap? or are there heatmap programs that will allow for this?

R heatmap • 4.1k views
ADD COMMENT
0
Entering edit mode

Heatmap functions have a ton of parameters in their readme. Have you read the manual thoroughly? Please show us you have invested some effort.

ADD REPLY
0
Entering edit mode

I went over the entire help section and also looked through the forums to see if this had been done with pheatmap and couldnt find anything. I spent quite some time (I am new to this) trying to figure out a heatmap function to draw multiple annotations. I was initially using heatmap.2 which allows for adjusting the size of the annotation but doesnt allow for multiple annotations. I currently have an image like this (https://i.postimg.cc/Y9Kh0RK3/Sample-Chip.png) when ideally i would like something around this size (made with heatmap.2) https://i.postimg.cc/7PTrm4zf/Sample-Image-2.png

ADD REPLY
1
Entering edit mode

That looks like a theme setting for axis.text.y and axis.ticks.y in ggplot context. Does pheatmap not have relevant settings?

EDIT: I see at least 2-3 options addressing this issue. Have you tried tweaking show_colnames or fontsize_col? What options have you tried?

ADD REPLY
0
Entering edit mode

It does not.

ADD REPLY
0
Entering edit mode

See How to add images to a Biostars post to add your images properly.

ADD REPLY
0
Entering edit mode

Thanks. I ended up using ComplexHeatmap. It had more options that I needed.

ADD REPLY
0
Entering edit mode

I faced a similar problem with pheatmap, and have switched to ComplexHeatmap, although the options are plenty, I couldn't quite figure out, how exactly to match the rownames of the matrix to its corresponding enrichment term as done in pheatmap annotations. Could you share how you solved this issue ? Thanks !!!

ADD REPLY

Login before adding your answer.

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