Learn R Programming

ggdendro (version 0.1-12)

dendro_data: Extract cluster data from a model into a list of data frames.

Description

This function provides a generic mechanism to extract relevant plotting data, typically line segments and labels, from a variety of cluster models.

Usage

dendro_data(model, ...)

Arguments

model
object of type hclust, dendrogram, tree or kmeans
...
ignored

Value

  • a list of data frames that contain the data appropriate to each cluster model

Details

In the case of dendrograms and tree models, the function will extract line segment data and labels. In the case of kmeans or Mclust models, the function extracts the cluster allocation.

See Also

There are several implementations for specific cluster algorithms: To extract the data for line segments, labels or leaf labels use: {the line segment data} label{the text for each end segment} leaf_label{the leaf labels of a tree diagram}