treeplot | R Documentation |
Draws a dendrogram.
treeplot(
clustering,
labels = FALSE,
k = NULL,
split = TRUE,
horiz = FALSE,
...
)
clustering |
The dendrogram to be plotted (result of |
labels |
Indicates whether or not labels (row names) should be showned on the plot. |
k |
Number of clusters. If not specified an "optimal" value is determined. |
split |
Indicates wheather or not the clusters should be highlighted in the graphics. |
horiz |
Indicates if the dendrogram should be drawn horizontally or not. |
... |
Other parameters. |
dendrogram
, HCA
, hclust
, agnes
require (datasets)
data (iris)
hca = HCA (iris [, -5], method = "ward", k = 3)
treeplot (hca)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.