ggdendro package is a set of tools for extracting dendrogram and tree diagram plot data for use with ggplot
ggdendro is a set of tools for extracting dendrogram and tree plot data so that dendrograms and tree plots can be plotted using the r package ggplot2. The ggplot philosophy is to separate clearly the 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 reference manual can be accessed from here.