getDendroSegmentDf: Obtain dendrogram segments

getDendroSegmentDfR Documentation

Obtain dendrogram segments

Description

Extracts a data.frame that contains data to plot a dendrogram with ggplot2::geom_segment().

Usage

getDendroSegmentDf(object, ...)

## S4 method for signature 'Clustering'
getDendroSegmentDf(
  object,
  methods_dist = "euclidean",
  methods_aggl = "ward.D",
  k = NULL,
  h = NULL,
  type = "rectangle"
)

## S4 method for signature 'Analysis'
getDendroSegmentDf(
  object,
  methods_dist = "eucldidean",
  methods_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

Data.frame.


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