Learn R Programming

RVAideMemoire (version 0.9-79)

dendro.gp: Dendrogram and number of groups to be chosen

Description

Draws a dendrogram and an additional bar plot helping to choose the number of groups to be retained (based on the dendrogram).

Usage

dendro.gp(dend)

Arguments

dend

a dendrogram obtained from hclust.

See Also

hclust

Examples

Run this code
# NOT RUN {
data(iris)
distances <- dist(iris[,1:4],method="euclidian")
dendro <- hclust(distances,method="ward.D2")
dendro.gp(dendro)
# }

Run the code above in your browser using DataLab