输入
a=matrix(1:20, 4, 5)
rownames(a) = paste("row_", 1:4, sep="")
colnames(a) = paste("col_", 1:5, sep="")
a
输出
out=pheatmap(a)
a[out$tree_row$order, out$tree_col$order]
输入
a=matrix(1:20, 4, 5)
rownames(a) = paste("row_", 1:4, sep="")
colnames(a) = paste("col_", 1:5, sep="")
a
输出
out=pheatmap(a)
a[out$tree_row$order, out$tree_col$order]