Create Dendrograms and Tree Diagrams Using 'ggplot2'

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.


News

ggdendro 0.1-20 (Release date: 2016-04-27)

Functional changes:

  • None

Enhancements:

  • Don't open plot device during calculation of segment data #25

ggdendro 0.1-19 (Release date: 2016-04-14)

Functional changes:

  • Removed margin argument from dendro_data.rpart, since this had no effect on plot.

Bug fixes:

  • Fixed issue 20: Plot data is dependent on device, causing errors and spurious new devices
  • Fixed issue 24: Labels don't print in ggdendrogram() with package scales_0.4
  • Fixed issue 22: Margin not working for dendro_data.rpart

ggdendro 0.1-18 (Release date: 2016-02-25)

Functional changes:

  • None

Other changes:

  • Minor change in documentation to comply with latest ggplot2 release

Fixes:

  • Fixed issue 13 by adding geom_blank()

ggdendro 0.1-17 (Release date: 2015-09-06)

Fixes:

  • Use if(require(...)) for tests, examples and vignettes that use Suggested packages
  • Update NAMESPACE to import functions from base R (required by R-devel)

ggdendro 0.1-16 (Release date: 2015-09-05)

New functionality:

  • Added support for objects of class twins in packages cluster, specifically agnes and diana objects (pull request #14 by @unikum)

Fixes:

  • Many small changes and improvements to documentation

ggdendro 0.1-15 (Release date: 29/09/2014)

New functionality:

  • None

Changes:

  • Some bug fixes
  • Unit tests now run during R CMD check
  • Modified vignette to use knitr instead of SWeave

ggdendro 0.1-14 (Release date: 2013-09-03)

New functionality

  • Added support for rpart

Changes:

  • Modified code to suggest tree, rather than import
  • Changed plot behaviour of ggdendrogram() to have prettier axis labels
  • Removed all references to hidden functions in package stats

ggdendro 0.1-12 (Release date: 2013-01-27)

New functionality

  • None

Changes:

  • ggdendro now imports MASS, tree and ggplot2 (rather than suggests)
  • Added Brian D. Ripley as author (original author of package tree)

ggdendro 0.1-09 (Release date: 2012-12-25)

New functionality

  • None

Changes:

  • Removed support for rpart
  • Changed Licence from GPL (>=2) to GPL-2|GPL-3 to conform with rtree license conditions

ggdendro 0.1-07 (Release date: 2012-08-30)

New functionality

  • None

Changes:

  • Modified code to conform to ggplot2 v0.9.2

ggdendro 0.1-04 (Release date: 2012-02-02)

New functionality

  • None
  • Modified examples to conform to ggplot2 v0.9

ggdendro 0.1-02 (Release date: 19/10/2011)

New functionality

  • Added support for classification trees using package:rpart

Fixed bugs:

  • Classification trees using tree produced error due to attempted rounding on factor variables

Changes in API

  • Fixed inconsistencies in the names of the data.frame segments. The names are now always x, y, xend and yend

ggdendro 0.0-7 (Release date: 2011-08-12)

New functionality

  • Included the ggdendrogram function that conveniently creates a ggplot dendrogram in a single line of code.
  • Created theme_dendro, an almost blank theme

ggdendro 0.0

Experimental release of package.

Supports extraction of plot data for the following classes:

  • dendrogram
  • tree
  • hclust

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ggdendro")

0.1-20 by Andrie de Vries, a year ago


https://github.com/andrie/ggdendro


Report a bug at https://github.com/andrie/ggdendro/issues


Browse source code at https://github.com/cran/ggdendro


Authors: Andrie de Vries [aut, cre], Brian D. Ripley [aut] (author of package tree)


Documentation:   PDF Manual  


GPL-2 | GPL-3 license


Imports MASS, ggplot2

Suggests rpart, tree, testthat, knitr, cluster, scales


Imported by PTXQC, Plasmidprofiler, SensMap, hierarchicalSets, mosaic, preproviz, rwty, specmine, starmie, superheat.

Depended on by EnsCat, GOplot.

Suggested by Rnightlights, disclapmix, propr, rattle.

Enhanced by dendextend.


See at CRAN