Check the Rowv, Colv options to heatmap.2

data(mtcars)
x  <- as.matrix(mtcars)
heatmap.2(x, Rowv=FALSE, dendrogram="column")

-Ashoka
----
Scientist - Pacific Northwest National Lab

On Dec 5, 2007 4:20 PM, affy snp <[EMAIL PROTECTED]> wrote:

> Dear list,
>
> I am using heatmap.2(x) to draw a heatmap. Ideally, I want to the matrix
> x clustered only by columns and keep the original order of rows unchanged.
> Is there a way to do that in heatmap.2()?
>
> Thanks a lot! Any suggestions will be appreciated!
>
> Best,
>      Allen
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to