Order of rows in heatmap?

前端 未结 5 527
被撕碎了的回忆
被撕碎了的回忆 2020-12-09 06:39

Take the following code:

 heatmap(data.matrix(signals),col=colors,breaks=breaks,scale=\"none\",Colv=NA,labRow=NA)

How can I extract, pre-ca

5条回答
  •  一向
    一向 (楼主)
    2020-12-09 07:01

    There are a variety of options. If you run ?heatmap you'll see the various parameters you can tweak. Maybe the easiest is to set Rowv=NA which should suppress row reordering, and then pass in the matrix with the rows already in the order you want. But you can also manually provide a clustering function, or dendrograms, via Rowv and hclustfun etc...

提交回复
热议问题