... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
CHANGES IN VERSION 1.7.4 |
2 | 2 |
------------------------ |
3 |
+ o reorder phylo to postorder before ladderrize <2016-11-28, Mon> |
|
3 | 4 |
o allow yscale to use data stored in phylo4d object <2016-11-24, Thu> |
4 | 5 |
+ https://github.com/GuangchuangYu/ggtree/issues/98 |
5 | 6 |
o groupOTU method now accept 'overlap = c("overwrite", "origin", "abandon")' parameter <2016-11-16, Wed> |
... | ... |
@@ -439,16 +439,17 @@ as.phylo.phylo4 <- function(phylo4) { |
439 | 439 |
##' @param ... additional parameter |
440 | 440 |
##' @return data.frame |
441 | 441 |
##' @importFrom ape ladderize |
442 |
+##' @importFrom ape reorder.phylo |
|
442 | 443 |
##' @importFrom ggplot2 fortify |
443 | 444 |
##' @method fortify phylo |
444 | 445 |
##' @export |
445 | 446 |
##' @author Yu Guangchuang |
446 | 447 |
fortify.phylo <- function(model, data, layout="rectangular", |
447 | 448 |
ladderize=TRUE, right=FALSE, mrsd=NULL, as.Date=FALSE, ...) { |
449 |
+ tree <- reorder.phylo(model, 'postorder') |
|
450 |
+ |
|
448 | 451 |
if (ladderize == TRUE) { |
449 |
- tree <- ladderize(model, right=right) |
|
450 |
- } else { |
|
451 |
- tree <- model |
|
452 |
+ tree <- ladderize(tree, right=right) |
|
452 | 453 |
} |
453 | 454 |
|
454 | 455 |
if (! is.null(tree$edge.length)) { |
... | ... |
@@ -4,7 +4,7 @@ ggtree: an R package for visualization and annotation of phylogenetic trees with |
4 | 4 |
|
5 | 5 |
[](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) <img src="logo.png" align="right" /> |
6 | 6 |
|
7 |
-[](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 |
+[](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) |
|
8 | 8 |
|
9 | 9 |
[](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) |
10 | 10 |
|