File:Reorder.dendrogram.png

From 太極
Jump to navigation Jump to search

Original file(814 × 600 pixels, file size: 10 KB, MIME type: image/png)

Summary

set.seed(123)
x <- rnorm(20)
hc <- hclust(dist(x))
dd <- as.dendrogram(hc)
par(mfrow=c(3, 1))
plot(dd, main = "random dendrogram 'dd'") # not the same as reorder(dd, 1:20)
plot(reorder(dd, 20:1),  main = 'reorder(dd, 20:1, sum)')
plot(reorder(dd, 20:1, mean),  main = 'reorder(dd, 20:1, mean)')

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:15, 8 January 2023Thumbnail for version as of 12:15, 8 January 2023814 × 600 (10 KB)Brb (talk | contribs)<pre> set.seed(123) x <- rnorm(20) hc <- hclust(dist(x)) dd <- as.dendrogram(hc) par(mfrow=c(3, 1)) plot(dd, main = "random dendrogram 'dd'") # not the same as reorder(dd, 1:20) plot(reorder(dd, 20:1), main = 'reorder(dd, 20:1, sum)') plot(reorder(dd, 20:1, mean), main = 'reorder(dd, 20:1, mean)') </pre>

The following page uses this file:

Metadata