Skip to content

Heatmap missing in Heatmap.2 output

1 message · M.K. Choy

#
Hi,

I have a matrix 11x7761245 and I am trying to do clustering, dendrogram and 
heatmap. The analysis was completed but only the dendrogram was written in 
the jpeg file. The heatmap was missing. May I know if anyone know this 
problem?

My script: hc = hclust.vector(x, method="ward") dend = as.dendrogram(hc) 
jpeg("Plot2.jpg") 
heatmap.2(y,Colv=dend,Rowv=FALSE,dendrogram="column",trace="none",col=rev(heat.colors(30))) 
dev.off()

Many thanks,

Munkit