Method for coercing object to class dendro.
as.dendro(segments, labels, leaf_labels = NULL, class)
data.frame with segment data
data.frame with labels data
data.frame with leaf label data
The class of the original model object, e.g. "hclust". This is
used by ggdendrogram()
to determine the angle and justification
of labels
dendro_data()
and ggdendro-package()