Skip to content

Commit

Permalink
Fixed example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
andrie committed Jun 23, 2012
1 parent c43205f commit 95c98ff
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
68 changes: 34 additions & 34 deletions DESCRIPTION
@@ -1,34 +1,34 @@
Package: ggdendro
Maintainer: Andrie de Vries
<andrie.de.vries@pentalibra.com>
License: GPL (>=2)
Title: Tools for extracting dendrogram and tree diagram
plot data for use with ggplot.
LazyData: true
LazyLoad: true
Author: Andrie de Vries <andrie.de.vries@pentalibra.com>
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.
Version: 0.1-04
URL: https://github.com/andrie/ggdendro
Date: 2012-01-27
Depends:
stats,
ggplot2
Suggests:
tree,
plyr,
rpart,
MASS
Collate:
'dendro_data.R'
'dendrogram.R'
'ggdendro-package.R'
'tree.r'
'rpart.R'
'ggdendrogram.R'
Package: ggdendro
Maintainer: Andrie de Vries
<andrie@pentalibra.com>
License: GPL (>=2)
Title: Tools for extracting dendrogram and tree diagram
plot data for use with ggplot.
LazyData: true
LazyLoad: true
Author: Andrie de Vries <andrie.de.vries@pentalibra.com>
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.
Version: 0.1-06
URL: https://github.com/andrie/ggdendro
Date: 2012-04-26
Depends:
stats,
ggplot2
Suggests:
tree,
plyr,
rpart,
MASS
Collate:
'dendro_data.R'
'dendrogram.R'
'ggdendro-package.R'
'tree.r'
'rpart.R'
'ggdendrogram.R'
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -32,7 +32,7 @@ The results of these functions can then be passed to `ggplot()` for plotting.
hcdata <- dendro_data(hc, type="rectangle")
ggplot() +
geom_segment(data=segment(hcdata), aes(x=x, y=y, xend=xend, yend=yend)) +
geom_text(data=label(hcdata), aes(x=x, y=y, label=text, hjust=0), size=3) +
geom_text(data=label(hcdata), aes(x=x, y=y, label=label, hjust=0), size=3) +
coord_flip() + scale_y_reverse(expand=c(0.2, 0))
### demonstrate plotting directly from object class hclust
Expand Down

0 comments on commit 95c98ff

Please sign in to comment.