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

Description Usage Arguments Details Value See Also

View source: R/cluster_data.R

Description

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

Usage

1
  cluster_data(model, ...)

Arguments

model

object of type hclust, dendrogram, tree or kmeans

...

ignored

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.

Value

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

See Also

There are several implementations for specific cluster algorithms:


pentalibra/ggcluster documentation built on May 25, 2019, 12:46 a.m.