... | ... |
@@ -2,7 +2,7 @@ Package: ggtree |
2 | 2 |
Type: Package |
3 | 3 |
Title: an R package for visualization and annotation of phylogenetic trees with |
4 | 4 |
their covariates and other associated data |
5 |
-Version: 1.9.1 |
|
5 |
+Version: 1.9.2 |
|
6 | 6 |
Authors@R: c( |
7 | 7 |
person("Guangchuang", "Yu", email = "guangchuangyu@gmail.com", role = c("aut", "cre", "cph")), |
8 | 8 |
person("Tommy Tsan-Yuk", "Lam", email = "tylam.tommy@gmail.com", rol = c("aut", "ths")), |
... | ... |
@@ -43,4 +43,4 @@ BugReports: https://github.com/GuangchuangYu/ggtree/issues |
43 | 43 |
Packaged: 2014-12-03 08:16:14 UTC; root |
44 | 44 |
biocViews: Alignment, Annotation, Clustering, DataImport, |
45 | 45 |
MultipleSequenceAlignment, ReproducibleResearch, Software, Visualization |
46 |
-RoxygenNote: 6.0.1 |
|
46 |
+RoxygenNote: 5.0.1 |
... | ... |
@@ -1,3 +1,8 @@ |
1 |
+CHANGES IN VERSION 1.9.2 |
|
2 |
+------------------------ |
|
3 |
+ o gheatmap support handling collapsed tree <2017-06-29, Thu> |
|
4 |
+ + https://github.com/GuangchuangYu/ggtree/issues/137 |
|
5 |
+ |
|
1 | 6 |
CHANGES IN VERSION 1.9.1 |
2 | 7 |
------------------------ |
3 | 8 |
o now mapping parameter will passed to segment layer in geom_tiplab(align=T) <2017-06-19, Mon> |
... | ... |
@@ -40,17 +40,23 @@ gheatmap <- function(p, data, offset=0, width=1, low="green", high="red", color= |
40 | 40 |
## } |
41 | 41 |
|
42 | 42 |
## convert width to width of each cell |
43 |
- width <- width * (p$data$x %>% range %>% diff) / ncol(data) |
|
43 |
+ width <- width * (p$data$x %>% range(na.rm=TRUE) %>% diff) / ncol(data) |
|
44 | 44 |
|
45 | 45 |
isTip <- x <- y <- variable <- value <- from <- to <- NULL |
46 | 46 |
|
47 | 47 |
df <- p$data |
48 | 48 |
df <- df[df$isTip,] |
49 |
- start <- max(df$x) + offset |
|
49 |
+ start <- max(df$x, na.rm=TRUE) + offset |
|
50 | 50 |
|
51 | 51 |
dd <- as.data.frame(data) |
52 | 52 |
## dd$lab <- rownames(dd) |
53 |
- lab <- df$label[order(df$y)] |
|
53 |
+ i <- order(df$y) |
|
54 |
+ |
|
55 |
+ ## handle collapsed tree |
|
56 |
+ ## https://github.com/GuangchuangYu/ggtree/issues/137 |
|
57 |
+ i <- i[!is.na(df$y[i])] |
|
58 |
+ |
|
59 |
+ lab <- df$label[i] |
|
54 | 60 |
dd <- dd[lab, , drop=FALSE] |
55 | 61 |
dd$y <- sort(df$y) |
56 | 62 |
dd$lab <- lab |
... | ... |
@@ -4,9 +4,9 @@ ggtree: an R package for visualization and annotation of phylogenetic trees with |
4 | 4 |
|
5 | 5 |
<img src="https://raw.githubusercontent.com/Bioconductor/BiocStickers/master/ggtree/ggtree.png" height="200" align="right" /> |
6 | 6 |
|
7 |
-[](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) |
|
7 |
+[](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) |
|
8 | 8 |
|
9 |
-[](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) |
|
9 |
+[](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) |
|
10 | 10 |
|
11 | 11 |
[](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) |
12 | 12 |
|
... | ... |
@@ -27,7 +27,7 @@ Please cite the following article when using `ggtree`: |
27 | 27 |
|
28 | 28 |
**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***. 2017, 8(1):28-36. |
29 | 29 |
|
30 |
-[](http://dx.doi.org/10.1111/2041-210X.12628) [](https://www.altmetric.com/details/10533079) |
|
30 |
+[](http://dx.doi.org/10.1111/2041-210X.12628) [](https://www.altmetric.com/details/10533079) |
|
31 | 31 |
|
32 | 32 |
------------------------------------------------------------------------ |
33 | 33 |
|
... | ... |
@@ -53,7 +53,7 @@ Please cite the following article when using `ggtree`: |
53 | 53 |
|
54 | 54 |
### Download stats |
55 | 55 |
|
56 |
-[](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
56 |
+[](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) [](https://bioconductor.org/packages/stats/bioc/ggtree) |
|
57 | 57 |
|
58 | 58 |
++------------------+-----------------+-----------------+-----------------+------------------++ |
59 | 59 |
3000 + * + |
... | ... |
@@ -30,10 +30,11 @@ highlights the two direct descendant clades of an internal node |
30 | 30 |
Particularly useful when studying neighboring clades. Note that balances that |
31 | 31 |
correspond to multichotomies will not be displayed. |
32 | 32 |
} |
33 |
+\author{ |
|
34 |
+Justin Silverman |
|
35 |
+} |
|
33 | 36 |
\references{ |
34 | 37 |
J. Silverman, et al. \emph{A phylogenetic transform enhances |
35 | 38 |
analysis of compositional microbiota data}. (in preparation) |
36 | 39 |
} |
37 |
-\author{ |
|
38 |
-Justin Silverman |
|
39 |
-} |
|
40 |
+ |
... | ... |
@@ -19,9 +19,10 @@ tip label layer |
19 | 19 |
\description{ |
20 | 20 |
add tip label for circular layout |
21 | 21 |
} |
22 |
-\references{ |
|
23 |
-\url{https://groups.google.com/forum/#!topic/bioc-ggtree/o35PV3iHO-0} |
|
24 |
-} |
|
25 | 22 |
\author{ |
26 | 23 |
Guangchuang Yu |
27 | 24 |
} |
25 |
+\references{ |
|
26 |
+\url{https://groups.google.com/forum/#!topic/bioc-ggtree/o35PV3iHO-0} |
|
27 |
+} |
|
28 |
+ |
... | ... |
@@ -18,3 +18,4 @@ named list of subtrees with the root id of subtree and list of node id's making |
18 | 18 |
Get all subtrees of node, as well as remaining branches of parent (ie, rest of tree structure as subtree) |
19 | 19 |
return named list of subtrees with list name as starting node id. |
20 | 20 |
} |
21 |
+ |
... | ... |
@@ -3,9 +3,8 @@ |
3 | 3 |
\docType{package} |
4 | 4 |
\name{ggtree} |
5 | 5 |
\alias{ggtree} |
6 |
-\alias{package-ggtree} |
|
7 | 6 |
\alias{ggtree-package} |
8 |
-\alias{ggtree} |
|
7 |
+\alias{package-ggtree} |
|
9 | 8 |
\title{visualizing phylogenetic tree and heterogenous associated data based on grammar of graphics |
10 | 9 |
\code{ggtree} provides functions for visualizing phylogenetic tree and its associated data in R.} |
11 | 10 |
\usage{ |
... | ... |
@@ -58,3 +57,4 @@ ggtree(tr) |
58 | 57 |
\author{ |
59 | 58 |
Yu Guangchuang |
60 | 59 |
} |
60 |
+ |
... | ... |
@@ -3,13 +3,12 @@ |
3 | 3 |
\docType{methods} |
4 | 4 |
\name{gzoom} |
5 | 5 |
\alias{gzoom} |
6 |
-\alias{gzoom} |
|
7 |
-\alias{gzoom,ggtree-method} |
|
8 | 6 |
\alias{gzoom,beast-method} |
9 | 7 |
\alias{gzoom,codeml-method} |
10 |
-\alias{gzoom,treedata-method} |
|
8 |
+\alias{gzoom,ggtree-method} |
|
11 | 9 |
\alias{gzoom,paml_rst-method} |
12 | 10 |
\alias{gzoom,phylo-method} |
11 |
+\alias{gzoom,treedata-method} |
|
13 | 12 |
\title{gzoom method} |
14 | 13 |
\usage{ |
15 | 14 |
gzoom(object, focus, subtree = FALSE, widths = c(0.3, 0.7), ...) |
... | ... |
@@ -51,3 +50,4 @@ figure |
51 | 50 |
\description{ |
52 | 51 |
zoom selected subtree |
53 | 52 |
} |
53 |
+ |
... | ... |
@@ -4,9 +4,9 @@ |
4 | 4 |
\name{scale_color} |
5 | 5 |
\alias{scale_color} |
6 | 6 |
\alias{scale_color,beast-method} |
7 |
-\alias{scale_color,treedata-method} |
|
8 | 7 |
\alias{scale_color,paml_rst-method} |
9 | 8 |
\alias{scale_color,phylo-method} |
9 |
+\alias{scale_color,treedata-method} |
|
10 | 10 |
\title{scale_color method} |
11 | 11 |
\usage{ |
12 | 12 |
scale_color(object, by, ...) |
... | ... |
@@ -33,3 +33,4 @@ color vector |
33 | 33 |
\description{ |
34 | 34 |
scale color by a numerical tree attribute |
35 | 35 |
} |
36 |
+ |