ggdendro: Create Dendrograms and Tree Diagrams Using 'ggplot2'
Version 0.1-20

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 cluster diagrams.

AuthorAndrie de Vries [aut, cre], Brian D. Ripley [aut] (author of package tree)
Date of publication2016-04-27 18:28:33
MaintainerAndrie de Vries <apdevries@gmail.com>
LicenseGPL-2 | GPL-3
Version0.1-20
URL https://github.com/andrie/ggdendro
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("ggdendro")

Getting started

Package overview

Popular man pages

dendro_data: Extract cluster data from a model into a list of data frames.
dendrogram_data: Extract data frame from dendrogram object for plotting using...
ggdendrogram: Creates dendrogram plot using ggplot.
ggdendro-package: Create Dendrograms and Tree Diagrams using 'ggplot2'
rpart_segments: Extract data frame from rpart object for plotting using...
segment: Returns segment, label or leaf-label data from dendro object.
tree_segments: Extract data frame from tree object for plotting using...
See all...

All man pages Function index File listing

Man pages

as.dendro: Coerces object to class dendro.
dendro_data: Extract cluster data from a model into a list of data frames.
dendro_data.rpart: Extract data from classification tree object for plotting...
dendro_data.tree: Extract data from regression tree object for plotting using...
dendrogram_data: Extract data frame from dendrogram object for plotting using...
get_data_tree_leaf_labels: Extract labels data frame from tree object for plotting using...
ggdendrogram: Creates dendrogram plot using ggplot.
ggdendro-package: Create Dendrograms and Tree Diagrams using 'ggplot2'
is.dendro: Tests whether an object is of class dendro.
labels.rpart: Make the nice labels used by print and summary.
rpartco: Compute the x-y coordinates for a tree.
rpart_labels: Extract labels data frame from rpart object for plotting...
rpart_segments: Extract data frame from rpart object for plotting using...
segment: Returns segment, label or leaf-label data from dendro object.
theme_dendro: Creates completely blank theme in ggplot.
treeco: Function copied from tree:::treeco.
tree_labels: Extract labels data frame from tree object for plotting using...
tree_segments: Extract data frame from tree object for plotting using...

Functions

as.dendro Man page Source code
dendro_data Man page Source code
dendro_data.default Man page Source code
dendro_data.dendrogram Man page Source code
dendro_data.hclust Man page Source code
dendro_data.rpart Man page Source code
dendro_data.tree Man page Source code
dendro_data.twins Man page Source code
dendrogram_data Man page Source code
formatg Source code
get_data_tree_leaf_labels Man page Source code
ggdendro Man page
ggdendro-package Man page
ggdendrogram Man page Source code
is.dendro Man page Source code
label Man page Source code
labels.rpart Man page Source code
leaf_label Man page Source code
memberDend Source code
midDend Source code
plotNodeLimit Source code
rpart.branch Source code
rpart_labels Man page Source code
rpart_segments Man page Source code
rpartco Man page Source code
segment Man page Source code
text.rpart Source code
theme_dendro Man page Source code
tree.depth Source code
tree_labels Man page Source code
tree_segments Man page Source code
treeco Man page Source code

Files

inst
inst/examples
inst/examples/example_ggdendrogram.R
inst/examples/example_dendro_tree.R
inst/examples/example_dendro_data.R
inst/examples/example_dendro_twins.R
inst/examples/example_dendro_rpart.R
inst/doc
inst/doc/ggdendro.R
inst/doc/ggdendro.Rmd
inst/doc/ggdendro.html
tests
tests/testthat.R
tests/testthat
tests/testthat/test-2-hclust.R
tests/testthat/Rplots.pdf
tests/testthat/Rplots2.pdf
tests/testthat/Rplots16.pdf
tests/testthat/test-3-tree.R
tests/testthat/Rplots14.pdf
tests/testthat/Rplots4.pdf
tests/testthat/Rplots12.pdf
tests/testthat/test-3-rpart.R
tests/testthat/Rplots9.pdf
tests/testthat/test-6-ggdendrogram.R
tests/testthat/Rplots6.pdf
tests/testthat/Rplots15.pdf
tests/testthat/test-4-clusterplots.R
tests/testthat/Rplots10.pdf
tests/testthat/Rplots7.pdf
tests/testthat/Rplots3.pdf
tests/testthat/Rplots8.pdf
tests/testthat/Rplots5.pdf
tests/testthat/test-1-dendrogram.R
tests/testthat/Rplots13.pdf
tests/testthat/Rplots1.pdf
tests/testthat/Rplots11.pdf
NAMESPACE
NEWS
R
R/rpart.R
R/dendro_tree.R
R/dendro_data.R
R/dendro_rpart.R
R/dendrogram.R
R/ggdendro-package.R
R/ggdendrogram.R
vignettes
vignettes/ggdendro.Rmd
MD5
build
build/vignette.rds
DESCRIPTION
man
man/segment.Rd
man/dendro_data.tree.Rd
man/treeco.Rd
man/dendro_data.rpart.Rd
man/labels.rpart.Rd
man/theme_dendro.Rd
man/is.dendro.Rd
man/rpart_segments.Rd
man/ggdendrogram.Rd
man/get_data_tree_leaf_labels.Rd
man/dendro_data.Rd
man/ggdendro-package.Rd
man/rpart_labels.Rd
man/rpartco.Rd
man/tree_labels.Rd
man/dendrogram_data.Rd
man/as.dendro.Rd
man/tree_segments.Rd
ggdendro documentation built on May 19, 2017, 8:28 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.