[BioC] heatmap-suppress col reordering/dendrogram?

Lourdes Peña Castillo lourdes.pena at gmail.com
Thu Oct 27 23:18:43 CEST 2005


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



More information about the Bioconductor mailing list