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 bioconductor package or a 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, and keep only the rownames I want, but they only show up when I limit the heatmap to about 100 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.
It appears that your post has been cross-posted to another site: https://www.biostars.org/p/158613/
This is typically not recommended as it runs the risk of annoying people in both communities.