Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Other dendro_data methods: dendro_data.rpart(), dendro_data.tree(), dendro_data(), rpart_labels()

Other dendrogram/hclust functions: dendro_data()


ggdendro

Create Dendrograms and Tree Diagrams Using 'ggplot2'

v0.1.22
GPL-2 | GPL-3
Authors
Andrie de Vries [aut, cre], Brian D. Ripley [aut] (author of package tree)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.