Retrieve the dendrogram leaf order
Arguments
- data
A numeric matrix or data frame whose rows are the categorical levels to cluster (
rownames()give the labels) and whose columns are the features used for clustering. Alternatively anhclustobject, or — forscale_x_cluster()/scale_y_cluster()— omitted, in which case the matrix is derived from the plot's own data (see Details).- method
Clustering method passed to
stats::hclust(). One of"ward.D","ward.D2","single","complete","average","mcquitty","median"or"centroid".
