getDendro | R Documentation |
dendro
Extracts the data from the computed hclust
object
with which a dendrogram can be plotted.
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"
)
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. |
An object of class dendro
. Contains data for argument
data
of function {ggdendro::ggdendrogram()}
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.