When clustering I would do something like plot(hclust(dist(scale(X))))
In case of heatmap and heatmap.2 it seems to me that for the dendrograms plot(hclust(dist(X))) is done while for the heatmap image(scale(X)) is done. I would say this is a bug however, because this is consistent among the heatmap functions, can anyone enlighten me why this is so? -- Witold Eryk Wolski ______________________________________________ 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.