getDendro: Obtain object of class 'dendro'

getDendroR Documentation

Obtain object of class dendro

Description

Extracts the data from the computed hclust object with which a dendrogram can be plotted.

Usage

getDendro(object, ...)

## S4 method for signature 'Clustering'
getDendro(
  object,
  method_dist = "euclidean",
  method_aggl = "ward.D",
  k = NULL,
  h = NULL,
  type = "rectangle"
)

## S4 method for signature 'Analysis'
getDendro(
  object,
  method_dist = "euclidean",
  method_aggl = "ward.D",
  k = NULL,
  h = NULL,
  type = "rectangle"
)

Arguments

object

Any object for whose class a method has been defined.

k

Numeric value. Denotes the number of clusters. Must be bigger than 1. Must not be bigger than the number of observations of the data set.

h

Numeric value. Denotes the height at which the dendrogram is cut.

Value

An object of class dendro. Contains data for argument data of function {ggdendro::ggdendrogram()}.


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.