Closed MichaelPeibo closed 4 years ago
@MichaelPeibo
In the end, the order of genes in the heatmap is determined by the matrix that you feed to heatmap.2. So, you could reorder ss
however you like, honestly. The reason that changing clust.order
is not working for you is that it is not used downstream -- the order of the rows in the code above is solely set by the hierarchical clustering function. clust.order
above is reading out the order that the clusters will appear in the heatmap, and used in order to set the color bar that accompanied them.
Hi, @farrellja I am using your complete code to plot a cascade heatmap of my own data.
How to reorder the cluster of heatmap? I try to set new order of
clust.order
, such asclust.order <- c(3,2,1,4,5,6,7,8,9,10)
, but the heatmap keeps the same.Should I reorder the matrix? Any suggestion? Thanks!
btw: sorry for pulling a 'heatmap.2-like' issue.