powered by
Draws a dendrogram.
treeplot( clustering, labels = FALSE, k = NULL, split = TRUE, horiz = FALSE, ... )
The dendrogram to be plotted (result of hclust, agnes or HCA).
hclust
agnes
HCA
Indicates whether or not labels (row names) should be showned on the plot.
Number of clusters. If not specified an "optimal" value is determined.
Indicates wheather or not the clusters should be highlighted in the graphics.
Indicates if the dendrogram should be drawn horizontally or not.
Other parameters.
dendrogram, HCA, hclust, agnes
dendrogram
require (datasets) data (iris) hca = HCA (iris [, -5], method = "ward", k = 3) treeplot (hca)
Run the code above in your browser using DataLab