Create Dendrograms and Tree Diagrams Using 'ggplot2'
Coerces object to class dendro.
Extract cluster data from a model into a list of data frames.
Extract data from classification tree object for plotting using ggplot...
Extract data from regression tree object for plotting using ggplot.
Extract data frame from dendrogram object for plotting using ggplot.
Extract labels data frame from tree object for plotting using ggplot.
Create Dendrograms and Tree Diagrams using 'ggplot2'
Creates dendrogram plot using ggplot.
Tests whether an object is of class dendro.
Extract labels data frame from rpart object for plotting using ggplot.
Extract data frame from rpart object for plotting using ggplot.
Compute the x-y coordinates for a tree.
Returns segment, label or leaf-label data from dendro object.
Creates completely blank theme in ggplot.
Extract labels data frame from tree object for plotting using ggplot.
Extract data frame from tree object for plotting using ggplot.
Function copied from tree:::treeco.
This is a set of tools for dendrograms and tree plots using 'ggplot2'. The 'ggplot2' philosophy is to clearly separate data from the presentation. Unfortunately the plot method for dendrograms plots directly to a plot device without exposing the data. The 'ggdendro' package resolves this by making available functions that extract the dendrogram plot data. The package provides implementations for 'tree', 'rpart', as well as diana and agnes (from 'cluster') diagrams.