Missing a row name in Heatmap.2
1
0
Entering edit mode
2.0 years ago
francesca3 ▴ 70

Hi, I use heatmap.2 (from ggplots) to produce heatmaps. Sometimes I notice that I miss a row name... It could be the first row, but other times it is in the middle.

This is the code

heatmap.2(unitomatrice, scale="row", col=palette, density.info="none", colRow = FALSE, trace="none", distfun = function(x) dist(x,method = 'manhattan'), lhei=c(1, 6), cexCol=0.8, cexRow = 0.5, margins=c(3,7), key.xlab="log2FC", Rowv=NA, dendrogram = "column", labRow =rnames)

I tried to change the cexRow or margin or lhei parameter but without results.

This is an example of what I obtain. As you can see the first row name is missing.heatmap

R ggplots • 2.3k views
ADD COMMENT
0
Entering edit mode

Search in the forum, there have been similar questions in the previous couple of weeks.

ADD REPLY
1
Entering edit mode
2.0 years ago

seconding Asaf's comment -- most likely you'll simply need to increase the overall size of the figure, e.g.

png(file = "myheatmap.png", height = 1500)
heatmap.2(......)
dev.off()
ADD COMMENT
1
Entering edit mode

Yes, same issue as outlined here, Francesca: A: Why some rows are deleted from the heat map created

ADD REPLY

Login before adding your answer.

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