Closed mebbert closed 6 years ago
try cluster_distance_cols=as.dist(1-cor(mat))
, it should solve your problem
You were right. I guess dist(1-cor(sig.heat))
was calculating a distance of distances.
Shouldn't the same modification also be applied to #28? @raivokolde specified dist
when describing how to use Spearman
and Kendall
.
your are correct, in #28 as.dist()
should be used instead of dist()
. good catch.
Hi,
I've been playing with pheatmap (wonderful package). I may be missing something very basic, but I noticed that the clusters produced by
cluster_distance_cols="correlation"
andcluster_distance_cols=dist(1-cor(mat))
are quite different. Shouldn't they be identical? It's not that the clades are simply rotated.I can send you example images by email, but I'd prefer not to post them publicly because the data are sensitive.
Here are the two commands:
EDIT: I'm using pheatmap version 1.0.8 and R version 3.4.3