ggdendro: Create Dendrograms and Tree Diagrams Using 'ggplot2'

Share:

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.

Author
Andrie de Vries [aut, cre], Brian D. Ripley [aut] (author of package tree)
Date of publication
2016-04-27 18:28:33
Maintainer
Andrie de Vries <apdevries@gmail.com>
License
GPL-2 | GPL-3
Version
0.1-20
URLs

View on CRAN

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

Files in this package

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