Learn R Programming

ggdendro (version 0.1-12)

dendrogram_data: Extract data frame from dendrogram object for plotting using ggplot.

Description

Extract data frame from dendrogram object for plotting using ggplot

Usage

dendrogram_data(x, type = c("rectangle", "triangle"),
    ...)

Arguments

x
object of class "dendrogram", e.g. the output of as.dendrogram()
type
The type of plot, indicating the shape of the dendrogram. "Rectangle" will draw rectangular lines, while "triangle" will draw triangular lines.
...
ignored

See Also

ggdendrogram Other dendro_data methods: dendro_data.dendrogram, dendro_data.tree Other dendrogram/hclust functions: dendro_data.dendrogram