Learn R Programming

⚠️There's a newer version (0.2.0) of this package.Take me there.

ggdendro (version 0.1-12)

Tools for extracting dendrogram and tree diagram plot data for use with ggplot.

Description

This is a set of tools for dendrograms and tree plots using ggplot. The ggplot 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.

Copy Link

Version

Install

install.packages('ggdendro')

Monthly Downloads

14,310

Version

0.1-12

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Andrie Vries

Last Published

January 28th, 2013

Functions in ggdendro (0.1-12)

is.dendro

Tests whether an object is of class dendro.
dendro_data

Extract cluster data from a model into a list of data frames.
ggdendrogram

Creates dendrogram plot using ggplot.
ggdendro-package

Tools for creating dendrograms, regresion tree and classification tree plots using ggplot in [R]
segment

Returns segment, label or leaf-label data from dendro object.
get_data_tree_leaf_labels

Extract labels data frame from tree object for plotting using ggplot.
tree_segments

Extract data frame from tree object for plotting using ggplot.
tree_labels

Extract labels data frame from tree object for plotting using ggplot.
theme_dendro

Creates completely blank theme in ggplot.
dendro_data.dendrogram

Extract line segment and label data from dendrogram or hclust object.
dendro_data.tree

Extract data from regression tree object for plotting using ggplot.
as.dendro

Coerces object to class dendro.
dendrogram_data

Extract data frame from dendrogram object for plotting using ggplot.