Skip to content
Prev 49653 / 398498 Next

Help with hclust() and plot()

michael watson (IAH-C) wrote:

            
Mick,
   Change the labels in hclust first:

data(USArrests)
hc <- hclust(dist(USArrests), "ave")
hc$labels <- 1:50
dend1 <- as.dendrogram(hc)
plot(dend1, horiz = TRUE)

--sundar