Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

treeplot

Dendrogram Plots


Description

Draws a dendrogram.

Usage

treeplot(
  clustering,
  labels = FALSE,
  k = NULL,
  split = TRUE,
  horiz = FALSE,
  ...
)

Arguments

clustering

The dendrogram to be plotted (result of hclust, agnes or HCA).

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.

See Also

Examples

require (datasets)
data (iris)
hca = HCA (iris [, -5], method = "ward", k = 3)
treeplot (hca)

fdm2id

Data Mining and R Programming for Beginners

v0.9.5
GPL-3
Authors
Alexandre Blansché [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.