plot.hierarchical_cluster: Plots a hierarchical_cluster Object

Description Usage Arguments

View source: R/hierarchical_cluster.R

Description

Plots a hierarchical_cluster object

Usage

1
2
3
## S3 method for class 'hierarchical_cluster'
plot(x, k = approx_k(get_dtm(x)), h = NULL,
  color = "red", ...)

Arguments

x

A hierarchical_cluster object.

k

The number of clusters (can supply h instead). Defaults to use approx_k of the DocumentTermMatrix produced by data_storage. Boxes are drawn around the clusters.

h

The height at which to cut the dendrograms (determines number of clusters). If this argument is supplied k is ignored. A line is drawn showing the cut point on the dendrogram.

color

The color to make the cluster boxes (k) or line (h).

...

Other arguments passed to rect.hclust or abline.


trinker/hclustext documentation built on May 27, 2017, 1:47 p.m.