git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@122979 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -1,14 +1,21 @@ |
1 | 1 |
Package: ggtree |
2 | 2 |
Type: Package |
3 | 3 |
Title: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data |
4 |
-Version: 1.7.0 |
|
5 |
-Author: Guangchuang Yu and Tommy Tsan-Yuk Lam |
|
4 |
+Version: 1.7.1 |
|
5 |
+Authors@R: c( |
|
6 |
+ person("Guangchuang", "Yu", email = "guangchuangyu@gmail.com", role = c("aut", "cre")), |
|
7 |
+ person("Tommy Tsan-Yuk", "Lam", email = "tylam.tommy@gmail.com", rol = "aut"), |
|
8 |
+ person("Justin", "Silverman", email = "jsilve24@gmail.com", rol = "ctb", comment = "geom_balance"), |
|
9 |
+ person("Casey", "Dunn", email = "casey_dunn@brown.edu", rol = "ctb", comment = "propose using txtConnection so that parser functions can use tree strings as input") |
|
10 |
+ ) |
|
11 |
+Author: Guangchuang Yu <guangchuangyu@gmail.com> and Tommy Tsan-Yuk Lam with contributions from |
|
12 |
+ Justin Silverman and Casey Dunn. |
|
6 | 13 |
Maintainer: Guangchuang Yu <guangchuangyu@gmail.com> |
7 | 14 |
Description: 'ggtree' extends the 'ggplot2' plotting system which implemented the grammar of graphics. |
8 | 15 |
'ggtree' is designed for visualization and annotation of phylogenetic trees with their covariates and other associated data. |
9 | 16 |
Depends: |
10 |
- R (>= 3.3.0), |
|
11 |
- ggplot2 (>= 2.0.0) |
|
17 |
+ R (>= 3.3.1), |
|
18 |
+ ggplot2 (>= 2.1.0) |
|
12 | 19 |
Imports: |
13 | 20 |
ape, |
14 | 21 |
grDevices, |
... | ... |
@@ -1,7 +1,11 @@ |
1 |
+CHANGES IN VERSION 1.7.1 |
|
2 |
+------------------------ |
|
3 |
+ o make tree stats available in facet_plot <2016-10-24, Mon> |
|
4 |
+ |
|
1 | 5 |
CHANGES IN VERSION 1.6.0 |
2 | 6 |
------------------------ |
3 | 7 |
o BioC 3.4 released <2016-10-18, Tue> |
4 |
- |
|
8 |
+ |
|
5 | 9 |
CHANGES IN VERSION 1.5.17 |
6 | 10 |
------------------------ |
7 | 11 |
o read.nhx support newick file <2016-10-17, Mon> |
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-##' update tree |
|
1 |
+##' update tree |
|
2 | 2 |
##' |
3 | 3 |
##' |
4 | 4 |
##' @rdname update-TREE |
... | ... |
@@ -34,8 +34,8 @@ |
34 | 34 |
##' @examples |
35 | 35 |
##' nwk <- system.file("extdata", "sample.nwk", package="ggtree") |
36 | 36 |
##' tree <- read.tree(nwk) |
37 |
-##' p <- ggtree(tree) |
|
38 |
-##' dd <- data.frame(taxa=LETTERS[1:13], |
|
37 |
+##' p <- ggtree(tree) |
|
38 |
+##' dd <- data.frame(taxa=LETTERS[1:13], |
|
39 | 39 |
##' place=c(rep("GZ", 5), rep("HK", 3), rep("CZ", 4), NA), |
40 | 40 |
##' value=round(abs(rnorm(13, mean=70, sd=10)), digits=1)) |
41 | 41 |
##' row.names(dd) <- NULL |
... | ... |
@@ -55,8 +55,8 @@ |
55 | 55 |
right <- get("right", envir = pg$plot_env) |
56 | 56 |
branch.length <- get("branch.length", envir = pg$plot_env) |
57 | 57 |
ndigits <- get("ndigits", envir = pg$plot_env) |
58 |
- |
|
59 |
- |
|
58 |
+ |
|
59 |
+ |
|
60 | 60 |
pg$data <- fortify(tree, |
61 | 61 |
layout = layout, |
62 | 62 |
yscale = yscale, |
... | ... |
@@ -93,14 +93,15 @@ |
93 | 93 |
##' |
94 | 94 |
##' @rdname add_TREEINFO |
95 | 95 |
##' @title \%+>\% |
96 |
-##' @param p tree view |
|
96 |
+##' @param p tree view |
|
97 | 97 |
##' @param data data.frame |
98 | 98 |
##' @return updated data.frame |
99 | 99 |
##' @export |
100 | 100 |
##' @author Guangchuang Yu |
101 | 101 |
`%+>%` <- function(p, data) { |
102 | 102 |
df <- p$data |
103 |
- res <- merge(df[, c('label', 'y')], data, by.x='label', by.y=1) ## , all.x=TRUE) |
|
103 |
+ ## res <- merge(df[, c('label', 'y')], data, by.x='label', by.y=1) ## , all.x=TRUE) |
|
104 |
+ res <- merge(df, data, by.x='label', by.y=1) ## , all.x=TRUE) |
|
104 | 105 |
lv <- levels(df$panel) |
105 | 106 |
res$panel <- factor(lv[length(lv)], levels=lv) |
106 | 107 |
return(res) |
... | ... |
@@ -1,9 +1,9 @@ |
1 | 1 |
ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data |
2 | 2 |
=========================================================================================================================== |
3 | 3 |
|
4 |
-[](https://bioconductor.org/packages/ggtree) [](https://github.com/GuangchuangYu/ggtree) [](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
4 |
+[](https://bioconductor.org/packages/ggtree) [](https://github.com/GuangchuangYu/ggtree) [](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#since) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
5 | 5 |
|
6 |
-[](http://www.repostatus.org/#active) [](https://codecov.io/gh/GuangchuangYu/ggtree) [](https://github.com/GuangchuangYu/ggtree/commits/master) [](https://github.com/GuangchuangYu/ggtree/network) [](https://github.com/GuangchuangYu/ggtree/stargazers) [](https://awesome-r.com/#awesome-r-graphic-displays) |
|
6 |
+[](http://www.repostatus.org/#active) [](https://codecov.io/gh/GuangchuangYu/ggtree) [](https://github.com/GuangchuangYu/ggtree/commits/master) [](https://github.com/GuangchuangYu/ggtree/network) [](https://github.com/GuangchuangYu/ggtree/stargazers) [](https://awesome-r.com/#awesome-r-graphic-displays) |
|
7 | 7 |
|
8 | 8 |
[](https://www.bioconductor.org/packages/devel/bioc/html/ggtree.html#archives) [](https://bioconductor.org/checkResults/devel/bioc-LATEST/ggtree/) [](https://travis-ci.org/GuangchuangYu/ggtree) [](https://ci.appveyor.com/project/GuangchuangYu/ggtree) [](http://bioconda.github.io/recipes/bioconductor-ggtree/README.html) |
9 | 9 |
|
... | ... |
@@ -17,7 +17,7 @@ Please cite the following article when using `ggtree`: |
17 | 17 |
|
18 | 18 |
**G Yu**, DK Smith, H Zhu, Y Guan, TTY Lam<sup>\*</sup>. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. ***Methods in Ecology and Evolution***. *accepted* |
19 | 19 |
|
20 |
-[](http://dx.doi.org/10.1111/2041-210X.12628) [](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) [](https://www.altmetric.com/details/10533079) |
|
20 |
+[](http://dx.doi.org/10.1111/2041-210X.12628) [](https://scholar.google.com.hk/scholar?oi=bibs&hl=en&cites=7268358477862164627) [](https://www.altmetric.com/details/10533079) |
|
21 | 21 |
|
22 | 22 |
------------------------------------------------------------------------ |
23 | 23 |
|
... | ... |
@@ -50,7 +50,7 @@ For details, please visit our project website, <https://guangchuangyu.github.io/ |
50 | 50 |
|
51 | 51 |
### Download stats |
52 | 52 |
|
53 |
-[](https://bioconductor.org/packages/stats/bioc/ggtree/) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
53 |
+[](https://bioconductor.org/packages/stats/bioc/ggtree/) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
54 | 54 |
|
55 | 55 |
+-------------------------+------------------------+-------------------------+----------------+ |
56 | 56 |
| * | |
... | ... |
@@ -20,8 +20,8 @@ add annotation data to a tree |
20 | 20 |
\examples{ |
21 | 21 |
nwk <- system.file("extdata", "sample.nwk", package="ggtree") |
22 | 22 |
tree <- read.tree(nwk) |
23 |
-p <- ggtree(tree) |
|
24 |
-dd <- data.frame(taxa=LETTERS[1:13], |
|
23 |
+p <- ggtree(tree) |
|
24 |
+dd <- data.frame(taxa=LETTERS[1:13], |
|
25 | 25 |
place=c(rep("GZ", 5), rep("HK", 3), rep("CZ", 4), NA), |
26 | 26 |
value=round(abs(rnorm(13, mean=70, sd=10)), digits=1)) |
27 | 27 |
row.names(dd) <- NULL |
... | ... |
@@ -184,7 +184,7 @@ inset(p, img) |
184 | 184 |
|
185 | 185 |
# Plot tree with associated data |
186 | 186 |
|
187 |
-For associating phylogenetic tree with different type of plot produced by user's data, `ggtree` provides `facet_plot` function which accepts an input `data.frame` and a 'geom' function to draw the input data. The data will be displayed in an additional panel of the plot. |
|
187 |
+For associating phylogenetic tree with different type of plot produced by user's data, `ggtree` provides `facet_plot` function which accepts an input `data.frame` and a `geom` function to draw the input data. The data will be displayed in an additional panel of the plot. |
|
188 | 188 |
|
189 | 189 |
```{r warning=F, fig.width=10, fig.height=6} |
190 | 190 |
tr <- rtree(30) |