heatmap-suppress col reordering/dendrogram?
3
0
Entering edit mode
Ann Hess ▴ 340
@ann-hess-251
Last seen 9.6 years ago
Using the heatmap function, is there a way to suppress the column reordering and column dendrogram? I have five time points and I want to keep them in order! I have tried the following commands, but still get reordered columns: heatmap(x, Colv=FALSE... heatmap(x, Colv=NULL... Also, is there a way to suppress the row dendrogram, but still reorder the rows according to some dendrogram? I was hoping to gain space for my row labels by omitting the dendrogram. I have tried the following command, but still get the dendrogram: heatmap(x, Rowv=as.dendrogram(hc), keep.dendro=FALSE)
• 6.9k views
ADD COMMENT
0
Entering edit mode
@sean-davis-490
Last seen 3 months ago
United States
On 10/26/05 11:10 AM, "Ann Hess" <hess at="" stat.colostate.edu=""> wrote: > Using the heatmap function, is there a way to suppress the column > reordering and column dendrogram? I have five time points and I want to > keep them in order! I have tried the following commands, but still get > reordered columns: > > heatmap(x, Colv=FALSE... > heatmap(x, Colv=NULL... > > Also, is there a way to suppress the row dendrogram, but still reorder the > rows according to some dendrogram? I was hoping to gain space for my row > labels by omitting the dendrogram. I have tried the following command, > but still get the dendrogram: > > heatmap(x, Rowv=as.dendrogram(hc), keep.dendro=FALSE) I like heatmap.2 from the gplots package which has a dendrogram=c('row','column','none') argument. Sean
ADD COMMENT
0
Entering edit mode
@sean-davis-490
Last seen 3 months ago
United States
On 10/26/05 11:18 AM, "Ann Hess" <hess at="" stat.colostate.edu=""> wrote: > Sean- > > Where do you get the gplots package? I don't see it listed with the BioC > 1.7 packages. CRAN. You can install package gregmisc which contains gplots as well as the other packages on which it depends. Sean
ADD COMMENT
0
Entering edit mode
@lourdes-pena-castillo-1305
Last seen 9.6 years ago
Hi Ann, > Using the heatmap function, is there a way to suppress the column > reordering and column dendrogram? I have five time points and I want to > keep them in order! I have tried the following commands, but still get > reordered columns: > > heatmap(x, Colv=FALSE... > heatmap(x, Colv=NULL... Try: heatmap(x, Colv=NA,... > Also, is there a way to suppress the row dendrogram, but still reorder the > rows according to some dendrogram? I was hoping to gain space for my row > labels by omitting the dendrogram. I have tried the following command, > but still get the dendrogram: > > heatmap(x, Rowv=as.dendrogram(hc), keep.dendro=FALSE) Try using the index of the rows in your dendrogram: myDendro <- as.dendrogram(hc) rowInd <- order.dendrogram(myDendro) heatmap(x[rowInd,], Rowv=NA, ... Lourdes
ADD COMMENT

Login before adding your answer.

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