Display only a subset of rownames in heatmap?
1
1
Entering edit mode
8.6 years ago

Hi everyone,

I am trying to create a heatmap in R that has about 20,000 rows and I want to display the rownames, which it does by default. The problem is that there are too many rows to display the names correctly, and only about 50 of the rownames have any real meaning. Is there any package or method in R to subset the rownames and have it display only the ones I want? I have tried setting a blank in the rownames I don't want, and keep only the rownames I want, but the labels only show up when I limit the heatmap to about 500 rows or so, and trying to increase the font size does not help.

I would like to keep all 20,000 rows because it shows the genome wide regulation pattern that I'm trying to portray in the figure, but for a subset of genes I'd like to display their approximate position in the heatmap to give a sense of where they fit in the overall pattern.

Thanks!

R heatmap • 6.1k views
ADD COMMENT
3
Entering edit mode
8.6 years ago

Using heatmap.2, for example, you can pass in a vector of row names as labRow, a character vector. Just make the row names for the "uninteresting rows" blank ("").

ADD COMMENT

Login before adding your answer.

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