October 2017
Beginner to intermediate
572 pages
26h 1m
English
You can choose a different distance measure and method while performing hierarchical clustering. For more details, you can refer to the documents for dist and hclust:
> ? dist > ? hclust
In this recipe, we use hclust to perform agglomerative hierarchical clustering; if you would like to perform divisive hierarchical clustering, you can use the diana function:
> dv = diana(customer, metric = "euclidean")
> summary(dv)
> plot(dv)
If you are interested in drawing a horizontal dendrogram, you can use the dendextend package. ...
Read now
Unlock full access