getDendroSegmentDf | R Documentation |
Extracts a data.frame that contains data to plot
a dendrogram with ggplot2::geom_segment()
.
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"
)
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. |
Data.frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.