Entering edit mode
julin@aecom.yu.edu
▴
80
@julinaecomyuedu-1967
Last seen 10.3 years ago
Hi dear all
I am using the heatmap.2 function in the gplots package to draw a
heatmap of
297 gene list. The plot looks very nice. But since the rows(genes)
were
reordered along with the dendrogram, is there any way to output this
reordered gene list from heatmap.2()?
The code I used is as below:
heatmap.2(ht,Rowv=TRUE,Colv=FALSE,
dendrogram= "row",
labRow=rownames(ht),
distfun = dist,
hclustfun = hclust,
key=TRUE,
keysize=1,
lhei=c(0.5,4.5),
trace="none",
density.info="none",
margins=c(3,8),
col=rev(redgreen(256)),
main="297 genes with high fold change"
)
Many thanks!
Juan
-----------------------------
Juan Lin
Faculty Associate
Department of Epidemiology and Population Health
Albert Einstein College of Medicine
[[alternative HTML version deleted]]