... | ... |
@@ -45,10 +45,10 @@ Please go to <https://yulab-smu.github.io/treedata-book/> for the full vignette. |
45 | 45 |
|
46 | 46 |
If you use `r Biocpkg('ggtree')` in published research, please cite the most appropriate paper(s) from this list: |
47 | 47 |
|
48 |
- |
|
49 |
-1. __G Yu__^\*^, TTY Lam, H Zhu, Y Guan^\*^. Two methods for mapping and visualizing associated data on phylogeny using ggtree. __*Molecular Biology and Evolution*__, 2018, 35(2):3041-3043. |
|
48 |
+1. __G Yu__. Using ggtree to visualize data on tree-like structures. __*Current Protocols in Bioinformatics*__, 2020, 69:e96. doi: [10.1002/cpbi.96](https://doi.org/10.1002/cpbi.96). |
|
49 |
+2. __G Yu__^\*^, TTY Lam, H Zhu, Y Guan^\*^. Two methods for mapping and visualizing associated data on phylogeny using ggtree. __*Molecular Biology and Evolution*__, 2018, 35(2):3041-3043. |
|
50 | 50 |
doi: [10.1093/molbev/msy194](https://doi.org/10.1093/molbev/msy194). |
51 |
-2. __G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for |
|
51 |
+3. __G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for |
|
52 | 52 |
visualization and annotation of phylogenetic trees with their covariates and |
53 | 53 |
other associated data. __*Methods in Ecology and Evolution*__. 2017, 8(1):28-36. |
54 | 54 |
doi: [10.1111/2041-210X.12628](https://doi.org/10.1111/2041-210X.12628). |
... | ... |
@@ -1,5 +1,5 @@ |
1 | 1 |
--- |
2 |
-title: "ggtree: phylogenetic tree visualization and annotation" |
|
2 |
+title: "ggtree: tree visualization and annotation" |
|
3 | 3 |
author: "Guangchuang Yu\\ |
4 | 4 |
|
5 | 5 |
School of Basic Medical Sciences, Southern Medical University" |
... | ... |
@@ -45,12 +45,34 @@ Please go to <https://yulab-smu.github.io/treedata-book/> for the full vignette. |
45 | 45 |
|
46 | 46 |
If you use `r Biocpkg('ggtree')` in published research, please cite the most appropriate paper(s) from this list: |
47 | 47 |
|
48 |
-1. __G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for |
|
48 |
+ |
|
49 |
+1. __G Yu__^\*^, TTY Lam, H Zhu, Y Guan^\*^. Two methods for mapping and visualizing associated data on phylogeny using ggtree. __*Molecular Biology and Evolution*__, 2018, 35(2):3041-3043. |
|
50 |
+doi: [10.1093/molbev/msy194](https://doi.org/10.1093/molbev/msy194). |
|
51 |
+2. __G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for |
|
49 | 52 |
visualization and annotation of phylogenetic trees with their covariates and |
50 | 53 |
other associated data. __*Methods in Ecology and Evolution*__. 2017, 8(1):28-36. |
51 | 54 |
doi: [10.1111/2041-210X.12628](https://doi.org/10.1111/2041-210X.12628). |
52 |
-2. __G Yu__^\*^, TTY Lam, H Zhu, Y Guan^\*^. Two methods for mapping and visualizing associated data on phylogeny using ggtree. __*Molecular Biology and Evolution*__, 2018, 35(2):3041-3043. |
|
53 |
-doi: [10.1093/molbev/msy194](https://doi.org/10.1093/molbev/msy194). |
|
55 |
+ |
|
56 |
+ |
|
57 |
+ |
|
58 |
+ |
|
59 |
+# Need helps? |
|
60 |
+ |
|
61 |
+ |
|
62 |
+If you have questions/issues, please visit |
|
63 |
+[ggtree homepage](https://guangchuangyu.github.io/software/ggtree/) first. |
|
64 |
+Your problems are mostly documented. |
|
65 |
+ |
|
66 |
+ |
|
67 |
+If you think you found a bug, please follow |
|
68 |
+[the guide](https://guangchuangyu.github.io/2016/07/how-to-bug-author/) and |
|
69 |
+provide a reproducible example to be posted |
|
70 |
+on |
|
71 |
+[github issue tracker](https://github.com/GuangchuangYu/ggtree/issues). |
|
72 |
+For questions, please post |
|
73 |
+to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree). Users |
|
74 |
+are highly recommended to subscribe to the [mailing list](https://groups.google.com/forum/#!forum/bioc-ggtree). |
|
75 |
+ |
|
54 | 76 |
|
55 | 77 |
|
56 | 78 |
|
... | ... |
@@ -232,21 +254,3 @@ published images and links to related resources). |
232 | 254 |
--> |
233 | 255 |
|
234 | 256 |
|
235 |
-# Need helps? |
|
236 |
- |
|
237 |
- |
|
238 |
-If you have questions/issues, please visit |
|
239 |
-[ggtree homepage](https://guangchuangyu.github.io/software/ggtree/) first. |
|
240 |
-Your problems are mostly documented. |
|
241 |
- |
|
242 |
- |
|
243 |
-If you think you found a bug, please follow |
|
244 |
-[the guide](https://guangchuangyu.github.io/2016/07/how-to-bug-author/) and |
|
245 |
-provide a reproducible example to be posted |
|
246 |
-on |
|
247 |
-[github issue tracker](https://github.com/GuangchuangYu/ggtree/issues). |
|
248 |
-For questions, please post |
|
249 |
-to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree). Users |
|
250 |
-are highly recommended to subscribe to the [mailing list](https://groups.google.com/forum/#!forum/bioc-ggtree). |
|
251 |
- |
|
252 |
- |
... | ... |
@@ -49,7 +49,7 @@ If you use `r Biocpkg('ggtree')` in published research, please cite the most app |
49 | 49 |
visualization and annotation of phylogenetic trees with their covariates and |
50 | 50 |
other associated data. __*Methods in Ecology and Evolution*__. 2017, 8(1):28-36. |
51 | 51 |
doi: [10.1111/2041-210X.12628](https://doi.org/10.1111/2041-210X.12628). |
52 |
-2. __G Yu__^\*^, TTY Lam, H Zhu, Y Guan^\*^. Two methods for mapping and visualizing associated data on phylogeny using ggtree. __*Molecular Biology and Evolution*__, accepted. |
|
52 |
+2. __G Yu__^\*^, TTY Lam, H Zhu, Y Guan^\*^. Two methods for mapping and visualizing associated data on phylogeny using ggtree. __*Molecular Biology and Evolution*__, 2018, 35(2):3041-3043. |
|
53 | 53 |
doi: [10.1093/molbev/msy194](https://doi.org/10.1093/molbev/msy194). |
54 | 54 |
|
55 | 55 |
|
... | ... |
@@ -1,12 +1,14 @@ |
1 | 1 |
--- |
2 |
-title: "ggtree: a phylogenetic tree viewer for different types of tree annotations" |
|
2 |
+title: "ggtree: phylogenetic tree visualization and annotation" |
|
3 | 3 |
author: "Guangchuang Yu\\ |
4 | 4 |
|
5 | 5 |
School of Basic Medical Sciences, Southern Medical University" |
6 | 6 |
date: "`r Sys.Date()`" |
7 | 7 |
output: |
8 |
- html_document: |
|
9 |
- toc: true |
|
8 |
+ prettydoc::html_pretty: |
|
9 |
+ toc: false |
|
10 |
+ theme: cayman |
|
11 |
+ highlight: github |
|
10 | 12 |
pdf_document: |
11 | 13 |
toc: true |
12 | 14 |
vignette: > |
... | ... |
@@ -4,20 +4,15 @@ author: "Guangchuang Yu\\ |
4 | 4 |
|
5 | 5 |
School of Basic Medical Sciences, Southern Medical University" |
6 | 6 |
date: "`r Sys.Date()`" |
7 |
-bibliography: ggtree.bib |
|
8 |
-biblio-style: apalike |
|
9 | 7 |
output: |
10 |
- prettydoc::html_pretty: |
|
8 |
+ html_document: |
|
11 | 9 |
toc: true |
12 |
- theme: cayman |
|
13 |
- highlight: github |
|
14 | 10 |
pdf_document: |
15 | 11 |
toc: true |
16 | 12 |
vignette: > |
17 |
- %\VignetteIndexEntry{01 ggtree Introduction} |
|
13 |
+ %\VignetteIndexEntry{ggtree} |
|
18 | 14 |
%\VignetteEngine{knitr::rmarkdown} |
19 | 15 |
%\usepackage[utf8]{inputenc} |
20 |
- %\VignetteEncoding{UTF-8} |
|
21 | 16 |
--- |
22 | 17 |
|
23 | 18 |
```{r style, echo=FALSE, results="asis", message=FALSE} |
... | ... |
@@ -39,11 +34,9 @@ Biocpkg <- function (pkg) { |
39 | 34 |
|
40 | 35 |
``` |
41 | 36 |
|
42 |
-> You can't even begin to understand biology, you can't understand life, unless |
|
43 |
-> you understand what it's all there for, how it arose - and that means |
|
44 |
-> evolution. |
|
45 |
-> |
|
46 |
-> --- Richard Dawkins |
|
37 |
+# Vignette |
|
38 |
+ |
|
39 |
+Please go to <https://yulab-smu.github.io/treedata-book/> for the full vignette. |
|
47 | 40 |
|
48 | 41 |
|
49 | 42 |
# Citation |
... | ... |
@@ -59,6 +52,8 @@ doi: [10.1093/molbev/msy194](https://doi.org/10.1093/molbev/msy194). |
59 | 52 |
|
60 | 53 |
|
61 | 54 |
|
55 |
+<!-- |
|
56 |
+ |
|
62 | 57 |
# Introduction |
63 | 58 |
|
64 | 59 |
This project arose from our needs to annotate nucleotide substitutions in the |
... | ... |
@@ -232,13 +227,18 @@ the [Tree Annotation](treeAnnotation.html) vignette. |
232 | 227 |
information about the package, more documentation, a gallery of beautiful |
233 | 228 |
published images and links to related resources). |
234 | 229 |
|
230 |
+--> |
|
231 |
+ |
|
235 | 232 |
|
236 | 233 |
# Need helps? |
237 | 234 |
|
238 | 235 |
|
239 | 236 |
If you have questions/issues, please visit |
240 | 237 |
[ggtree homepage](https://guangchuangyu.github.io/software/ggtree/) first. |
241 |
-Your problems are mostly documented. If you think you found a bug, please follow |
|
238 |
+Your problems are mostly documented. |
|
239 |
+ |
|
240 |
+ |
|
241 |
+If you think you found a bug, please follow |
|
242 | 242 |
[the guide](https://guangchuangyu.github.io/2016/07/how-to-bug-author/) and |
243 | 243 |
provide a reproducible example to be posted |
244 | 244 |
on |
... | ... |
@@ -248,14 +248,3 @@ to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree). Users |
248 | 248 |
are highly recommended to subscribe to the [mailing list](https://groups.google.com/forum/#!forum/bioc-ggtree). |
249 | 249 |
|
250 | 250 |
|
251 |
- |
|
252 |
-# Session info |
|
253 |
- |
|
254 |
-Here is the output of `sessionInfo()` on the system on which this document was compiled: |
|
255 |
- |
|
256 |
-```{r echo=FALSE} |
|
257 |
-sessionInfo() |
|
258 |
-``` |
|
259 |
- |
|
260 |
- |
|
261 |
-# References |
... | ... |
@@ -48,12 +48,15 @@ Biocpkg <- function (pkg) { |
48 | 48 |
|
49 | 49 |
# Citation |
50 | 50 |
|
51 |
-If you use `r Biocpkg('ggtree')` in published research, please cite: |
|
51 |
+If you use `r Biocpkg('ggtree')` in published research, please cite the most appropriate paper(s) from this list: |
|
52 | 52 |
|
53 |
-__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for |
|
53 |
+1. __G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for |
|
54 | 54 |
visualization and annotation of phylogenetic trees with their covariates and |
55 | 55 |
other associated data. __*Methods in Ecology and Evolution*__. 2017, 8(1):28-36. |
56 | 56 |
doi: [10.1111/2041-210X.12628](https://doi.org/10.1111/2041-210X.12628). |
57 |
+2. __G Yu__^\*^, TTY Lam, H Zhu, Y Guan^\*^. Two methods for mapping and visualizing associated data on phylogeny using ggtree. __*Molecular Biology and Evolution*__, accepted. |
|
58 |
+doi: [10.1093/molbev/msy194](https://doi.org/10.1093/molbev/msy194). |
|
59 |
+ |
|
57 | 60 |
|
58 | 61 |
|
59 | 62 |
# Introduction |
... | ... |
@@ -1,8 +1,8 @@ |
1 | 1 |
--- |
2 | 2 |
title: "ggtree: a phylogenetic tree viewer for different types of tree annotations" |
3 |
-author: "Guangchuang Yu and Tommy Tsan-Yuk Lam\\ |
|
3 |
+author: "Guangchuang Yu\\ |
|
4 | 4 |
|
5 |
- School of Public Health, The University of Hong Kong" |
|
5 |
+ School of Basic Medical Sciences, Southern Medical University" |
|
6 | 6 |
date: "`r Sys.Date()`" |
7 | 7 |
bibliography: ggtree.bib |
8 | 8 |
biblio-style: apalike |
... | ... |
@@ -245,8 +245,6 @@ to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree). Users |
245 | 245 |
are highly recommended to subscribe to the [mailing list](https://groups.google.com/forum/#!forum/bioc-ggtree). |
246 | 246 |
|
247 | 247 |
|
248 |
-For Chinese user, you can follow me on [WeChat (微信)](https://guangchuangyu.github.io/blog_images/biobabble.jpg). |
|
249 |
- |
|
250 | 248 |
|
251 | 249 |
# Session info |
252 | 250 |
|
... | ... |
@@ -192,12 +192,8 @@ knitr::kable(geoms, caption = "Geom layers defined in ggtree.", booktabs = T) |
192 | 192 |
``` |
193 | 193 |
|
194 | 194 |
`r Biocpkg('ggtree')` supports creating phylomoji using Emoji fonts, please |
195 |
-refer to `r CRANpkg("emojifont")` package vignette for details. The vignette can |
|
196 |
-be opened via the following command: |
|
197 |
- |
|
198 |
-```r |
|
199 |
-vignette("phylomoji", package="emojifont") |
|
200 |
-``` |
|
195 |
+refer to the |
|
196 |
+[Phylomoji](https://guangchuangyu.github.io/software/ggtree/vignettes/phylomoji.html) vignette. |
|
201 | 197 |
|
202 | 198 |
|
203 | 199 |
`r Biocpkg('ggtree')` integrates [phylopic](http://phylopic.org/) database and silhouette images of organisms can |
... | ... |
@@ -224,7 +220,7 @@ the [Tree Annotation](treeAnnotation.html) vignette. |
224 | 220 |
+ [Tree Visualization](treeVisualization.html) |
225 | 221 |
+ [Tree Manipulation](treeManipulation.html) |
226 | 222 |
+ [Tree Annotation](treeAnnotation.html) |
227 |
-+ [Phylomoji](https://cran.r-project.org/web/packages/emojifont/vignettes/phylomoji.html) |
|
223 |
++ [Phylomoji](https://guangchuangyu.github.io/software/ggtree/vignettes/phylomoji.html) |
|
228 | 224 |
+ [Annotating phylogenetic tree with images](https://guangchuangyu.github.io/software/ggtree/vignettes/ggtree-ggimage.html) |
229 | 225 |
+ [Annotate a phylogenetic tree with insets](https://guangchuangyu.github.io/software/ggtree/vignettes/ggtree-inset.html) |
230 | 226 |
|
... | ... |
@@ -17,6 +17,7 @@ vignette: > |
17 | 17 |
%\VignetteIndexEntry{01 ggtree Introduction} |
18 | 18 |
%\VignetteEngine{knitr::rmarkdown} |
19 | 19 |
%\usepackage[utf8]{inputenc} |
20 |
+ %\VignetteEncoding{UTF-8} |
|
20 | 21 |
--- |
21 | 22 |
|
22 | 23 |
```{r style, echo=FALSE, results="asis", message=FALSE} |
... | ... |
@@ -232,10 +233,23 @@ the [Tree Annotation](treeAnnotation.html) vignette. |
232 | 233 |
information about the package, more documentation, a gallery of beautiful |
233 | 234 |
published images and links to related resources). |
234 | 235 |
|
235 |
-# Feedback |
|
236 | 236 |
|
237 |
- - For bugs or feature request, please post to [github issue](https://github.com/GuangchuangYu/ggtree/issues). |
|
238 |
- - For user questions, please post to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree). |
|
237 |
+# Need helps? |
|
238 |
+ |
|
239 |
+ |
|
240 |
+If you have questions/issues, please visit |
|
241 |
+[ggtree homepage](https://guangchuangyu.github.io/software/ggtree/) first. |
|
242 |
+Your problems are mostly documented. If you think you found a bug, please follow |
|
243 |
+[the guide](https://guangchuangyu.github.io/2016/07/how-to-bug-author/) and |
|
244 |
+provide a reproducible example to be posted |
|
245 |
+on |
|
246 |
+[github issue tracker](https://github.com/GuangchuangYu/ggtree/issues). |
|
247 |
+For questions, please post |
|
248 |
+to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree). Users |
|
249 |
+are highly recommended to subscribe to the [mailing list](https://groups.google.com/forum/#!forum/bioc-ggtree). |
|
250 |
+ |
|
251 |
+ |
|
252 |
+For Chinese user, you can follow me on [WeChat (微信)](https://guangchuangyu.github.io/blog_images/biobabble.jpg). |
|
239 | 253 |
|
240 | 254 |
|
241 | 255 |
# Session info |
... | ... |
@@ -228,7 +228,7 @@ the [Tree Annotation](treeAnnotation.html) vignette. |
228 | 228 |
+ [Annotate a phylogenetic tree with insets](https://guangchuangyu.github.io/software/ggtree/vignettes/ggtree-inset.html) |
229 | 229 |
|
230 | 230 |
|
231 |
-**ggtree homepage**: <https://guangchuangyu.github.io/ggtree> (contains more |
|
231 |
+**ggtree homepage**: <https://guangchuangyu.github.io/software/ggtree> (contains more |
|
232 | 232 |
information about the package, more documentation, a gallery of beautiful |
233 | 233 |
published images and links to related resources). |
234 | 234 |
|
... | ... |
@@ -224,8 +224,8 @@ the [Tree Annotation](treeAnnotation.html) vignette. |
224 | 224 |
+ [Tree Manipulation](treeManipulation.html) |
225 | 225 |
+ [Tree Annotation](treeAnnotation.html) |
226 | 226 |
+ [Phylomoji](https://cran.r-project.org/web/packages/emojifont/vignettes/phylomoji.html) |
227 |
-+ [Annotating phylogenetic tree with images](https://guangchuangyu.github.io/ggtree/vignettes/ggtree-ggimage.html) |
|
228 |
-+ [Annotate a phylogenetic tree with insets](https://guangchuangyu.github.io/ggtree/vignettes/ggtree-inset.html) |
|
227 |
++ [Annotating phylogenetic tree with images](https://guangchuangyu.github.io/software/ggtree/vignettes/ggtree-ggimage.html) |
|
228 |
++ [Annotate a phylogenetic tree with insets](https://guangchuangyu.github.io/software/ggtree/vignettes/ggtree-inset.html) |
|
229 | 229 |
|
230 | 230 |
|
231 | 231 |
**ggtree homepage**: <https://guangchuangyu.github.io/ggtree> (contains more |
... | ... |
@@ -225,6 +225,7 @@ the [Tree Annotation](treeAnnotation.html) vignette. |
225 | 225 |
+ [Tree Annotation](treeAnnotation.html) |
226 | 226 |
+ [Phylomoji](https://cran.r-project.org/web/packages/emojifont/vignettes/phylomoji.html) |
227 | 227 |
+ [Annotating phylogenetic tree with images](https://guangchuangyu.github.io/ggtree/vignettes/ggtree-ggimage.html) |
228 |
++ [Annotate a phylogenetic tree with insets](https://guangchuangyu.github.io/ggtree/vignettes/ggtree-inset.html) |
|
228 | 229 |
|
229 | 230 |
|
230 | 231 |
**ggtree homepage**: <https://guangchuangyu.github.io/ggtree> (contains more |
... | ... |
@@ -224,12 +224,14 @@ the [Tree Annotation](treeAnnotation.html) vignette. |
224 | 224 |
+ [Tree Manipulation](treeManipulation.html) |
225 | 225 |
+ [Tree Annotation](treeAnnotation.html) |
226 | 226 |
+ [Phylomoji](https://cran.r-project.org/web/packages/emojifont/vignettes/phylomoji.html) |
227 |
-+ [Annotating phylogenetic tree with images](https://cran.r-project.org/web/packages/ggimage/vignettes/ggtree.html) |
|
227 |
++ [Annotating phylogenetic tree with images](https://guangchuangyu.github.io/ggtree/vignettes/ggtree-ggimage.html) |
|
228 | 228 |
|
229 | 229 |
|
230 |
-More documents can be found in <https://guangchuangyu.github.io/ggtree>. |
|
230 |
+**ggtree homepage**: <https://guangchuangyu.github.io/ggtree> (contains more |
|
231 |
+information about the package, more documentation, a gallery of beautiful |
|
232 |
+published images and links to related resources). |
|
231 | 233 |
|
232 |
-# Feedback # |
|
234 |
+# Feedback |
|
233 | 235 |
|
234 | 236 |
- For bugs or feature request, please post to [github issue](https://github.com/GuangchuangYu/ggtree/issues). |
235 | 237 |
- For user questions, please post to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree). |
... | ... |
@@ -14,7 +14,7 @@ output: |
14 | 14 |
pdf_document: |
15 | 15 |
toc: true |
16 | 16 |
vignette: > |
17 |
- %\VignetteIndexEntry{00 ggtree introduction} |
|
17 |
+ %\VignetteIndexEntry{01 ggtree Introduction} |
|
18 | 18 |
%\VignetteEngine{knitr::rmarkdown} |
19 | 19 |
%\usepackage[utf8]{inputenc} |
20 | 20 |
--- |
... | ... |
@@ -124,14 +124,29 @@ and *daylight* for *unrooted* layout, time-scaled and two dimentional |
124 | 124 |
phylogenies. [Tree Visualization](treeVisualization.html) vignette describes |
125 | 125 |
these feature in details. |
126 | 126 |
|
127 |
-We implement several functions to manipulate a phylogenetic tree. |
|
127 |
+We implement several functions to manipulate a phylogenetic tree visually, |
|
128 |
+including viewing selected clade to explore large tree, taxa clustering, |
|
129 |
+rotating clade or tree, zoom out or collapsing clades *etc.*. |
|
128 | 130 |
|
129 |
-+ taxa can be clustered together using `groupClade` or `groupOTU` functions |
|
130 |
-+ clades can be collapsed via `collapse` function |
|
131 |
-+ collapsed clade can be expanded by using `expand` function |
|
132 |
-+ clade can be re-scale to zoom in or zoom out by `scaleClade` function |
|
133 |
-+ selected clade can be rotated by 180 degree using `rotate` function |
|
134 |
-+ position of two selected clades (should share a same parent) can be exchanged by `flip` function |
|
131 |
+ |
|
132 |
+ |
|
133 |
+```{r treeman, echo=FALSE, out.extra='', message=FALSE} |
|
134 |
+treeman <- matrix(c( |
|
135 |
+ "collapse", "collapse a selecting clade", |
|
136 |
+ "expand", "expand collapsed clade", |
|
137 |
+ "flip", "exchange position of 2 clades that share a parent node", |
|
138 |
+ "groupClade", "grouping clades", |
|
139 |
+ "groupOTU", "grouping OTUs by tracing back to most recent common ancestor", |
|
140 |
+ "identify", "interactive tree manipulation", |
|
141 |
+ "rotate", "rotating a selected clade by 180 degree", |
|
142 |
+ "rotate_tree", "rotating circular layout tree by specific angle", |
|
143 |
+ "scaleClade", "zoom in or zoom out selecting clade", |
|
144 |
+ "open_tree", "convert a tree to fan layout by specific open angle" |
|
145 |
+), ncol=2, byrow=TRUE) |
|
146 |
+treeman <- as.data.frame(treeman) |
|
147 |
+colnames(treeman) <- c("Function", "Descriptiotn") |
|
148 |
+knitr::kable(treeman, caption = "Tree manipulation functions.", booktabs = T) |
|
149 |
+``` |
|
135 | 150 |
|
136 | 151 |
|
137 | 152 |
Details and examples can be found in [Tree Manipulation](treeManipulation.html) vignette. |
... | ... |
@@ -38,7 +38,10 @@ Biocpkg <- function (pkg) { |
38 | 38 |
|
39 | 39 |
``` |
40 | 40 |
|
41 |
-> You can't even begin to understand biology, you can't understand life, unless you understand what it's all there for, how it arose - and that means evolution. |
|
41 |
+> You can't even begin to understand biology, you can't understand life, unless |
|
42 |
+> you understand what it's all there for, how it arose - and that means |
|
43 |
+> evolution. |
|
44 |
+> |
|
42 | 45 |
> --- Richard Dawkins |
43 | 46 |
|
44 | 47 |
|
... | ... |
@@ -114,7 +117,12 @@ visualize or annotate phylogenetic tree in `r Biocpkg('ggtree')` [@yu_ggtree:_20 |
114 | 117 |
|
115 | 118 |
# Tree Visualization and Annotation |
116 | 119 |
|
117 |
-Tree Visualization in `ggtree` is easy, with one line of command `ggtree(tree_object)`. It supports several layouts, including `rectangular`, `slanted` and `circular` for `Phylogram` and `Cladogram`, `unrooted` layout, time-scaled and two dimentional phylogenies. [Tree Visualization](treeVisualization.html) vignette describes these feature in details. |
|
120 |
+Tree Visualization in `r Biocpkg('ggtree')` is easy, with one line of command |
|
121 |
+`ggtree(tree_object)`. It supports several layouts, including *rectangular*, |
|
122 |
+*slanted*, *circular* and *fan* for *phylogram* and *cladogram*, *equal_angle* |
|
123 |
+and *daylight* for *unrooted* layout, time-scaled and two dimentional |
|
124 |
+phylogenies. [Tree Visualization](treeVisualization.html) vignette describes |
|
125 |
+these feature in details. |
|
118 | 126 |
|
119 | 127 |
We implement several functions to manipulate a phylogenetic tree. |
120 | 128 |
|
... | ... |
@@ -125,27 +133,73 @@ We implement several functions to manipulate a phylogenetic tree. |
125 | 133 |
+ selected clade can be rotated by 180 degree using `rotate` function |
126 | 134 |
+ position of two selected clades (should share a same parent) can be exchanged by `flip` function |
127 | 135 |
|
136 |
+ |
|
128 | 137 |
Details and examples can be found in [Tree Manipulation](treeManipulation.html) vignette. |
129 | 138 |
|
130 | 139 |
|
131 |
-Most of the phylogenetic trees are scaled by evolutionary distance (substitution/site), in `ggtree` a phylogenetic tree can be re-scaled by any numerical variable inferred by evolutionary analysis (e.g. species divergence time, *dN/dS*, _etc_). Numerical and category variable can be used to color a phylogenetic tree. |
|
140 |
+Most of the phylogenetic trees are scaled by evolutionary distance |
|
141 |
+(substitution/site), in `r Biocpkg('ggtree')` a phylogenetic tree can be |
|
142 |
+re-scaled by any numerical variable inferred by evolutionary analysis (e.g. |
|
143 |
+species divergence time, *d~N~/d~S~*, _etc_). Numerical and category variable can be |
|
144 |
+used to color a phylogenetic tree. |
|
145 |
+ |
|
146 |
+The `r Biocpkg('ggtree')` package provides several layers to annotate a |
|
147 |
+phylogenetic tree. These layers are building blocks that can be freely combined |
|
148 |
+together to create complex tree visualization. |
|
149 |
+ |
|
150 |
+```{r geoms, echo=FALSE, message=FALSE} |
|
151 |
+geoms <- matrix(c( |
|
152 |
+ "geom_balance", "highlights the two direct descendant clades of an internal node", |
|
153 |
+ "geom_cladelabel", "annotate a clade with bar and text label", |
|
154 |
+ "geom_cladelabel2", "annotate a clade with bar and text label for unrooted layout", |
|
155 |
+ "geom_hilight", "highlight a clade with rectangle", |
|
156 |
+ "geom_hilight_encircle", "highlight a clade with xspline for unrooted layout", |
|
157 |
+ "geom_label2", "modified version of geom_label, with subsetting supported", |
|
158 |
+ "geom_nodelab", "layer for node labels, which can be text or image", |
|
159 |
+ "geom_nodepoint", "annotate internal nodes with symbolic points", |
|
160 |
+ "geom_point2", "modified version of geom_point, with subsetting supported", |
|
161 |
+ "geom_range", "bar layer to present uncertainty of evolutionary inference", |
|
162 |
+ "geom_rootpoint", "annotate root node with symbolic point", |
|
163 |
+ "geom_segment2", "modified version of geom_segment, with subsetting supported", |
|
164 |
+ "geom_strip", "annotate associated taxa with bar and (optional) text label", |
|
165 |
+ "geom_taxalink", "associate two related taxa by linking them with a curve", |
|
166 |
+ "geom_text2", "modified version of geom_text, with subsetting supported", |
|
167 |
+ "geom_tiplab", "layer of tip labels, which can be text or image", |
|
168 |
+ "geom_tiplab2", "layer of tip labels for circular layout", |
|
169 |
+ "geom_tippoint", "annotate external nodes with symbolic points", |
|
170 |
+ "geom_tree", "tree structure layer, with multiple layout supported", |
|
171 |
+ "geom_treescale", "tree branch scale legend" |
|
172 |
+), ncol=2, byrow=TRUE) |
|
173 |
+geoms <- as.data.frame(geoms) |
|
174 |
+colnames(geoms) <- c("Layer", "Description") |
|
175 |
+knitr::kable(geoms, caption = "Geom layers defined in ggtree.", booktabs = T) |
|
176 |
+``` |
|
177 |
+ |
|
178 |
+`r Biocpkg('ggtree')` supports creating phylomoji using Emoji fonts, please |
|
179 |
+refer to `r CRANpkg("emojifont")` package vignette for details. The vignette can |
|
180 |
+be opened via the following command: |
|
181 |
+ |
|
182 |
+```r |
|
183 |
+vignette("phylomoji", package="emojifont") |
|
184 |
+``` |
|
132 | 185 |
|
133 |
-The `ggtree` package provides several layers to annotate a phylogenetic tree, including: |
|
134 | 186 |
|
135 |
-+ `geom_cladelabel` for labelling selected clades |
|
136 |
-+ `geom_hilight` for highlighting selected clades |
|
137 |
-+ `geom_range` to indicate uncertainty of branch lengths |
|
138 |
-+ `geom_strip` for adding strip/bar to label associated taxa (with optional label) |
|
139 |
-+ `geom_taxalink` for connecting related taxa |
|
140 |
-+ `geom_tiplab` for adding tip labels |
|
141 |
-+ `geom_treescale` for adding a legend of tree scale |
|
187 |
+`r Biocpkg('ggtree')` integrates [phylopic](http://phylopic.org/) database and silhouette images of organisms can |
|
188 |
+be downloaded and used to annotate phylogenetic directly. `r Biocpkg('ggtree')` also supports |
|
189 |
+using local or remote images to annotate a phylogenetic tree. For details, |
|
190 |
+please refer to the `r CRANpkg('ggimage')` package vignette, which can be opened |
|
191 |
+via the following command: |
|
142 | 192 |
|
143 | 193 |
|
144 |
-It supports annotating phylogenetic trees with analyses obtained from R packages and other commonly used evolutionary software. User's specific annotation (e.g. experimental data) can be integrated to annotate phylogenetic trees. `ggtree` provides `write.jplace` function to combine Newick tree file and user's own data to a single `jplace` file that can be parsed and the data can be used to annotate the tree directly in `ggtree`. |
|
194 |
+```r |
|
195 |
+vignette("ggtree", package="ggimage") |
|
196 |
+``` |
|
145 | 197 |
|
146 |
-`ggtree` integrates `phylopic` database and silhouette images of organisms can be downloaded and used to annotate phylogenetic directly. `ggtree` also supports using local images to annotate a phylogenetic tree. |
|
147 | 198 |
|
148 |
-Visualizing an annotated phylogenetic tree with numerical matrix (e.g. genotype table), multiple sequence alignment and subplots are also supported in `ggtree`. Examples of annotating phylogenetic trees can be found in the [Tree Annotation](treeAnnotation.html) and [Advance Tree Annotation](advanceTreeAnnotation.html) vignettes. |
|
199 |
+Visualizing an annotated phylogenetic tree with numerical matrix (e.g. genotype |
|
200 |
+table), multiple sequence alignment and subplots are also supported in `ggtree`. |
|
201 |
+Examples of annotating phylogenetic trees can be found in |
|
202 |
+the [Tree Annotation](treeAnnotation.html) vignette. |
|
149 | 203 |
|
150 | 204 |
|
151 | 205 |
# Vignette Entry |
... | ... |
@@ -154,14 +208,13 @@ Visualizing an annotated phylogenetic tree with numerical matrix (e.g. genotype |
154 | 208 |
+ [Tree Visualization](treeVisualization.html) |
155 | 209 |
+ [Tree Manipulation](treeManipulation.html) |
156 | 210 |
+ [Tree Annotation](treeAnnotation.html) |
157 |
-+ [Advance Tree Annotation](advanceTreeAnnotation.html) |
|
158 | 211 |
+ [Phylomoji](https://cran.r-project.org/web/packages/emojifont/vignettes/phylomoji.html) |
159 |
-+ [Annotating phylogenetic tree with images using ggtree and ggimage](https://cran.r-project.org/web/packages/ggimage/vignettes/ggtree.html) |
|
212 |
++ [Annotating phylogenetic tree with images](https://cran.r-project.org/web/packages/ggimage/vignettes/ggtree.html) |
|
160 | 213 |
|
161 | 214 |
|
162 | 215 |
More documents can be found in <https://guangchuangyu.github.io/ggtree>. |
163 | 216 |
|
164 |
-## Feedback ## |
|
217 |
+# Feedback # |
|
165 | 218 |
|
166 | 219 |
- For bugs or feature request, please post to [github issue](https://github.com/GuangchuangYu/ggtree/issues). |
167 | 220 |
- For user questions, please post to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree). |
... | ... |
@@ -5,7 +5,7 @@ author: "Guangchuang Yu and Tommy Tsan-Yuk Lam\\ |
5 | 5 |
School of Public Health, The University of Hong Kong" |
6 | 6 |
date: "`r Sys.Date()`" |
7 | 7 |
bibliography: ggtree.bib |
8 |
-csl: nature.csl |
|
8 |
+biblio-style: apalike |
|
9 | 9 |
output: |
10 | 10 |
prettydoc::html_pretty: |
11 | 11 |
toc: true |
... | ... |
@@ -25,14 +25,18 @@ knitr::opts_chunk$set(tidy = FALSE, |
25 | 25 |
``` |
26 | 26 |
|
27 | 27 |
|
28 |
-```{r echo=FALSE, results="hide", message=FALSE} |
|
29 |
-library("colorspace") |
|
30 |
-library("ape") |
|
31 |
-library("ggplot2") |
|
32 |
-library("ggtree") |
|
33 |
-``` |
|
28 |
+```{r echo=FALSE} |
|
29 |
+CRANpkg <- function (pkg) { |
|
30 |
+ cran <- "https://CRAN.R-project.org/package" |
|
31 |
+ fmt <- "[%s](%s=%s)" |
|
32 |
+ sprintf(fmt, pkg, cran, pkg) |
|
33 |
+} |
|
34 | 34 |
|
35 |
+Biocpkg <- function (pkg) { |
|
36 |
+ sprintf("[%s](http://bioconductor.org/packages/%s)", pkg, pkg) |
|
37 |
+} |
|
35 | 38 |
|
39 |
+``` |
|
36 | 40 |
|
37 | 41 |
> You can't even begin to understand biology, you can't understand life, unless you understand what it's all there for, how it arose - and that means evolution. |
38 | 42 |
> --- Richard Dawkins |
... | ... |
@@ -40,27 +44,73 @@ library("ggtree") |
40 | 44 |
|
41 | 45 |
# Citation |
42 | 46 |
|
43 |
-If you use `ggtree` in published research, please cite: |
|
47 |
+If you use `r Biocpkg('ggtree')` in published research, please cite: |
|
44 | 48 |
|
45 |
-__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. 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. doi:[10.1111/2041-210X.12628](http://dx.doi.org/10.1111/2041-210X.12628). |
|
49 |
+__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for |
|
50 |
+visualization and annotation of phylogenetic trees with their covariates and |
|
51 |
+other associated data. __*Methods in Ecology and Evolution*__. 2017, 8(1):28-36. |
|
52 |
+doi: [10.1111/2041-210X.12628](https://doi.org/10.1111/2041-210X.12628). |
|
46 | 53 |
|
47 | 54 |
|
48 | 55 |
# Introduction |
49 | 56 |
|
50 |
-This project arose from our needs to annotate nucleotide substitutions in the phylogenetic tree, and we found that there is no tree visualization software can do this easily. Existing tree viewers are designed for displaying phylogenetic tree, but not annotating it. Although some tree viewers can displaying bootstrap values in the tree, it is hard/impossible to display other information in the tree. Our first solution for displaying nucleotide substituitions in the tree is to add this information in the node/tip names and use traditional tree viewer to show it. We displayed the information in the tree successfully, but we believe this indirect approach is inefficient. |
|
51 |
- |
|
52 |
-Previously, phylogenetic trees were much smaller. Annotation of phylogenetic trees was not as necessary as nowadays much more data is becomming available. We want to associate our experimental data, for instance antigenic change, with the evolution relationship. Visualizing these associations in a phylogenetic tree can help us to identify evolution patterns. We believe we need a next generation tree viewer that should be programmable and extensible. It can view a phylogenetic tree easily as we did with classical software and support adding annotation data in a layer above the tree. This is the objective of developing the `ggtree`. Common tasks of annotating a phylogenetic tree should be easy and complicated tasks can be possible to achieve by adding multiple layers of annotation. |
|
53 |
- |
|
54 |
-The `ggtree` is designed by extending the `ggplot2`[@wickham_ggplot2_2009] package. It is based on the grammar of graphics and takes all the good parts of `ggplot2`. There are other R packages that implement tree viewer using `ggplot2`, including `OutbreakTools`, `phyloseq`[@mcmurdie_phyloseq_2013] and [ggphylo](https://github.com/gjuggler/ggphylo); they mostly create complex tree view functions for their specific needs. Internally, these packages interpret a phylogenetic as a collection of `lines`, which makes it hard to annotate diverse user input that are related to node (taxa). The `ggtree` is different to them by interpreting a tree as a collection of `taxa` and allowing general flexibilities of annotating phylogenetic tree with diverse types of user inputs. |
|
55 |
- |
|
56 |
- |
|
57 |
-# Getting data into `R` |
|
58 |
- |
|
59 |
-Most of the tree viewer software (including `R` packages) focus on `Newick` and `Nexus` file format, while there are file formats from different evolution analysis software that contain supporting evidences within the file that are ready for annotating a phylogenetic tree. In addition to `Newick` and `Nexus`, ggtree supports `NHX`, `jplace` and `Phylip` file formats. `ggtree` also supports software outputs from [BEAST](http://beast2.org/)[@bouckaert_beast_2014], [EPA](http://sco.h-its.org/exelixis/web/software/epa/index.html)[@berger_EPA_2011], [HYPHY](http://hyphy.org/w/index.php/Main_Page)[@pond_hyphy_2005], [PAML](http://abacus.gene.ucl.ac.uk/software/paml.html)[@yang_paml_2007], [PHYLDOG](http://pbil.univ-lyon1.fr/software/phyldog/)[@boussau_genome-scale_2013], [pplacer](http://matsen.fhcrc.org/pplacer/)[@matsen_pplacer_2010], [r8s](http://loco.biosci.arizona.edu/r8s/)[@marazzi_locating_2012], [RAxML](http://sco.h-its.org/exelixis/web/software/raxml/)[@stamatakis_raxml_2014] and [RevBayes](http://revbayes.github.io/intro.html)[@hohna_probabilistic_2014]. |
|
57 |
+This project arose from our needs to annotate nucleotide substitutions in the |
|
58 |
+phylogenetic tree, and we found that there is no tree visualization software can |
|
59 |
+do this easily. Existing tree viewers are designed for displaying phylogenetic |
|
60 |
+tree, but not annotating it. Although some tree viewers can displaying bootstrap |
|
61 |
+values in the tree, it is hard/impossible to display other information in the |
|
62 |
+tree. Our first solution for displaying nucleotide substituitions in the tree is |
|
63 |
+to add this information in the node/tip names and use traditional tree viewer to |
|
64 |
+show it. We displayed the information in the tree successfully, but we believe |
|
65 |
+this indirect approach is inefficient. |
|
66 |
+ |
|
67 |
+Previously, phylogenetic trees were much smaller. Annotation of phylogenetic |
|
68 |
+trees was not as necessary as nowadays much more data is becomming available. We |
|
69 |
+want to associate our experimental data, for instance antigenic change, with the |
|
70 |
+evolution relationship. Visualizing these associations in a phylogenetic tree |
|
71 |
+can help us to identify evolution patterns. We believe we need a next generation |
|
72 |
+tree viewer that should be programmable and extensible. It can view a |
|
73 |
+phylogenetic tree easily as we did with classical software and support adding |
|
74 |
+annotation data in a layer above the tree. This is the objective of developing |
|
75 |
+the `r Biocpkg('ggtree')` [@yu_ggtree:_2017]. Common tasks of annotating a phylogenetic tree should |
|
76 |
+be easy and complicated tasks can be possible to achieve by adding multiple |
|
77 |
+layers of annotation. |
|
78 |
+ |
|
79 |
+The `r Biocpkg('ggtree')` is designed by extending the `r CRANpkg('ggplot2')` |
|
80 |
+[@wickham_ggplot2_2009] package. It is based on the grammar of graphics and |
|
81 |
+takes all the good parts of `r CRANpkg('ggplot2')`. There are other R packages that implement |
|
82 |
+tree viewer using `r CRANpkg('ggplot2')`, including `r CRANpkg('OutbreakTools')`, |
|
83 |
+`r Biocpkg('phyloseq')` [@mcmurdie_phyloseq_2013] |
|
84 |
+and [ggphylo](https://github.com/gjuggler/ggphylo); they mostly create complex |
|
85 |
+tree view functions for their specific needs. Internally, these packages |
|
86 |
+interpret a phylogenetic as a collection of lines, which makes it hard to |
|
87 |
+annotate diverse user input that are related to node (taxa). The `r Biocpkg('ggtree')` is |
|
88 |
+different to them by interpreting a tree as a collection of taxa and allowing |
|
89 |
+general flexibilities of annotating phylogenetic tree with diverse types of user |
|
90 |
+inputs. |
|
91 |
+ |
|
92 |
+ |
|
93 |
+# Getting data into *R* |
|
94 |
+ |
|
95 |
+Most of the tree viewer software (including *R* packages) focus on *Newick* and |
|
96 |
+*Nexus* file format, while there are file formats from different evolution |
|
97 |
+analysis software that contain supporting evidences within the file that are |
|
98 |
+ready for annotating a phylogenetic tree. The `r Biocpkg('treeio')` package |
|
99 |
+supports several file formats and software outputs. It brings analysis findings |
|
100 |
+to *R* users for further analysis (*e.g.* summarization, visualization, |
|
101 |
+comparison and test, *etc.*). It also allows external data to be mapped on the |
|
102 |
+phylogeny. Please refer to the `r Biocpkg('treeio')` vignette |
|
103 |
+for more details. |
|
104 |
+ |
|
105 |
+Users can use the following command to open the vignette: |
|
106 |
+ |
|
107 |
+```r |
|
108 |
+vignette("Importer", package="treeio") |
|
109 |
+``` |
|
60 | 110 |
|
61 |
-Parsing data from a number of molecular evolution software is not only for visualization in `ggtree`, but also bring these data to `R` users for further analysis (e.g. summarization, visualization, comparision, test, _etc_). |
|
111 |
+All the data parsed/integrated by `r Biocpkg('treeio')` package can be used to |
|
112 |
+visualize or annotate phylogenetic tree in `r Biocpkg('ggtree')` [@yu_ggtree:_2017]. |
|
62 | 113 |
|
63 |
-For more details, please refer to [Tree Data Import](treeImport.html) vignette. |
|
64 | 114 |
|
65 | 115 |
# Tree Visualization and Annotation |
66 | 116 |
|
... | ... |
@@ -100,25 +150,27 @@ Visualizing an annotated phylogenetic tree with numerical matrix (e.g. genotype |
100 | 150 |
|
101 | 151 |
# Vignette Entry |
102 | 152 |
|
103 |
-+ [Tree Data Import](https://bioconductor.org/packages/release/bioc/vignettes/treeio/inst/doc/treeio.html) |
|
153 |
++ [Tree Data Import](https://bioconductor.org/packages/devel/bioc/vignettes/treeio/inst/doc/Importer.html) |
|
104 | 154 |
+ [Tree Visualization](treeVisualization.html) |
105 | 155 |
+ [Tree Manipulation](treeManipulation.html) |
106 | 156 |
+ [Tree Annotation](treeAnnotation.html) |
107 | 157 |
+ [Advance Tree Annotation](advanceTreeAnnotation.html) |
108 |
-+ [ggtree utilities](ggtreeUtilities.html) |
|
109 | 158 |
+ [Phylomoji](https://cran.r-project.org/web/packages/emojifont/vignettes/phylomoji.html) |
159 |
++ [Annotating phylogenetic tree with images using ggtree and ggimage](https://cran.r-project.org/web/packages/ggimage/vignettes/ggtree.html) |
|
160 |
+ |
|
110 | 161 |
|
111 | 162 |
More documents can be found in <https://guangchuangyu.github.io/ggtree>. |
112 | 163 |
|
113 | 164 |
## Feedback ## |
114 | 165 |
|
115 | 166 |
- For bugs or feature request, please post to [github issue](https://github.com/GuangchuangYu/ggtree/issues). |
116 |
- - For user questions, please post to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree) or post to [Bioconductor support site](https://support.bioconductor.org/) or [Biostars](https://www.biostars.org/). We are following every post tagged with **ggtree**. |
|
167 |
+ - For user questions, please post to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree). |
|
117 | 168 |
|
118 | 169 |
|
119 | 170 |
# Session info |
120 | 171 |
|
121 | 172 |
Here is the output of `sessionInfo()` on the system on which this document was compiled: |
173 |
+ |
|
122 | 174 |
```{r echo=FALSE} |
123 | 175 |
sessionInfo() |
124 | 176 |
``` |
... | ... |
@@ -101,7 +101,7 @@ Visualizing an annotated phylogenetic tree with numerical matrix (e.g. genotype |
101 | 101 |
|
102 | 102 |
# Vignette Entry |
103 | 103 |
|
104 |
-+ [Tree Data Import](treeImport.html) |
|
104 |
++ [Tree Data Import](https://bioconductor.org/packages/release/bioc/vignettes/treeio/inst/doc/treeio.html) |
|
105 | 105 |
+ [Tree Visualization](treeVisualization.html) |
106 | 106 |
+ [Tree Manipulation](treeManipulation.html) |
107 | 107 |
+ [Tree Annotation](treeAnnotation.html) |
... | ... |
@@ -43,7 +43,7 @@ library("ggtree") |
43 | 43 |
|
44 | 44 |
If you use `ggtree` in published research, please cite: |
45 | 45 |
|
46 |
-__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. 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. doi:[10.1111/2041-210X.12628](http://dx.doi.org/10.1111/2041-210X.12628) |
|
46 |
+__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. 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. doi:[10.1111/2041-210X.12628](http://dx.doi.org/10.1111/2041-210X.12628). |
|
47 | 47 |
|
48 | 48 |
|
49 | 49 |
# Introduction |
... | ... |
@@ -6,7 +6,7 @@ author: "Guangchuang Yu and Tommy Tsan-Yuk Lam\\ |
6 | 6 |
date: "`r Sys.Date()`" |
7 | 7 |
bibliography: ggtree.bib |
8 | 8 |
csl: nature.csl |
9 |
-output: |
|
9 |
+output: |
|
10 | 10 |
prettydoc::html_pretty: |
11 | 11 |
toc: true |
12 | 12 |
theme: cayman |
... | ... |
@@ -52,7 +52,7 @@ This project arose from our needs to annotate nucleotide substitutions in the ph |
52 | 52 |
|
53 | 53 |
Previously, phylogenetic trees were much smaller. Annotation of phylogenetic trees was not as necessary as nowadays much more data is becomming available. We want to associate our experimental data, for instance antigenic change, with the evolution relationship. Visualizing these associations in a phylogenetic tree can help us to identify evolution patterns. We believe we need a next generation tree viewer that should be programmable and extensible. It can view a phylogenetic tree easily as we did with classical software and support adding annotation data in a layer above the tree. This is the objective of developing the `ggtree`. Common tasks of annotating a phylogenetic tree should be easy and complicated tasks can be possible to achieve by adding multiple layers of annotation. |
54 | 54 |
|
55 |
-The `ggtree` is designed by extending the `ggplot2`[@wickham_ggplot2_2009] package. It is based on the grammar of graphics and takes all the good parts of `ggplot2`. There are other R packages that implement tree viewer using `ggplot2`, including `OutbreakTools`, `phyloseq`[@mcmurdie_phyloseq_2013] and [ggphylo](https://github.com/gjuggler/ggphylo); they mostly create complex tree view functions for their specific needs. Internally, these packages interpret a phylogenetic as a collection of `lines`, which makes it hard to annotate diverse user input that are related to node (taxa). The `ggtree` is different to them by interpreting a tree as a collection of `taxa` and allowing general flexibilities of annotating phylogenetic tree with diverse types of user inputs. |
|
55 |
+The `ggtree` is designed by extending the `ggplot2`[@wickham_ggplot2_2009] package. It is based on the grammar of graphics and takes all the good parts of `ggplot2`. There are other R packages that implement tree viewer using `ggplot2`, including `OutbreakTools`, `phyloseq`[@mcmurdie_phyloseq_2013] and [ggphylo](https://github.com/gjuggler/ggphylo); they mostly create complex tree view functions for their specific needs. Internally, these packages interpret a phylogenetic as a collection of `lines`, which makes it hard to annotate diverse user input that are related to node (taxa). The `ggtree` is different to them by interpreting a tree as a collection of `taxa` and allowing general flexibilities of annotating phylogenetic tree with diverse types of user inputs. |
|
56 | 56 |
|
57 | 57 |
|
58 | 58 |
# Getting data into `R` |
... | ... |
@@ -84,7 +84,7 @@ Most of the phylogenetic trees are scaled by evolutionary distance (substitution |
84 | 84 |
The `ggtree` package provides several layers to annotate a phylogenetic tree, including: |
85 | 85 |
|
86 | 86 |
+ `geom_cladelabel` for labelling selected clades |
87 |
-+ `geom_hilight` for highlighting selected clades |
|
87 |
++ `geom_hilight` for highlighting selected clades |
|
88 | 88 |
+ `geom_range` to indicate uncertainty of branch lengths |
89 | 89 |
+ `geom_strip` for adding strip/bar to label associated taxa (with optional label) |
90 | 90 |
+ `geom_taxalink` for connecting related taxa |
... | ... |
@@ -107,7 +107,7 @@ Visualizing an annotated phylogenetic tree with numerical matrix (e.g. genotype |
107 | 107 |
+ [Tree Annotation](treeAnnotation.html) |
108 | 108 |
+ [Advance Tree Annotation](advanceTreeAnnotation.html) |
109 | 109 |
+ [ggtree utilities](ggtreeUtilities.html) |
110 |
- |
|
110 |
++ [Phylomoji](https://cran.r-project.org/web/packages/emojifont/vignettes/phylomoji.html) |
|
111 | 111 |
|
112 | 112 |
More documents can be found in <https://guangchuangyu.github.io/ggtree>. |
113 | 113 |
|
... | ... |
@@ -115,7 +115,7 @@ More documents can be found in <https://guangchuangyu.github.io/ggtree>. |
115 | 115 |
|
116 | 116 |
- For bugs or feature request, please post to [github issue](https://github.com/GuangchuangYu/ggtree/issues). |
117 | 117 |
- For user questions, please post to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree) or post to [Bioconductor support site](https://support.bioconductor.org/) or [Biostars](https://www.biostars.org/). We are following every post tagged with **ggtree**. |
118 |
- |
|
118 |
+ |
|
119 | 119 |
|
120 | 120 |
# Session info |
121 | 121 |
|
... | ... |
@@ -40,9 +40,10 @@ library("ggtree") |
40 | 40 |
|
41 | 41 |
|
42 | 42 |
# Citation |
43 |
+ |
|
43 | 44 |
If you use `ggtree` in published research, please cite: |
44 | 45 |
|
45 |
-__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. __*Methods in Ecology and Evolution*__. _accepted_. doi:[10.1111/2041-210X.12628](http://dx.doi.org/10.1111/2041-210X.12628) |
|
46 |
+__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. 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. doi:[10.1111/2041-210X.12628](http://dx.doi.org/10.1111/2041-210X.12628) |
|
46 | 47 |
|
47 | 48 |
|
48 | 49 |
# Introduction |
... | ... |
@@ -1,16 +1,16 @@ |
1 | 1 |
--- |
2 | 2 |
title: "ggtree: a phylogenetic tree viewer for different types of tree annotations" |
3 |
-author: "\\ |
|
4 |
- |
|
5 |
- Guangchuang Yu (<guangchuangyu@gmail.com>) and Tommy Tsan-Yuk Lam (<ttylam@hku.hk>)\\ |
|
3 |
+author: "Guangchuang Yu and Tommy Tsan-Yuk Lam\\ |
|
6 | 4 |
|
7 | 5 |
School of Public Health, The University of Hong Kong" |
8 | 6 |
date: "`r Sys.Date()`" |
9 | 7 |
bibliography: ggtree.bib |
10 | 8 |
csl: nature.csl |
11 | 9 |
output: |
12 |
- html_document: |
|
10 |
+ prettydoc::html_pretty: |
|
13 | 11 |
toc: true |
12 |
+ theme: cayman |
|
13 |
+ highlight: github |
|
14 | 14 |
pdf_document: |
15 | 15 |
toc: true |
16 | 16 |
vignette: > |
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@120192 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -42,7 +42,7 @@ library("ggtree") |
42 | 42 |
# Citation |
43 | 43 |
If you use `ggtree` in published research, please cite: |
44 | 44 |
|
45 |
-__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. __*Methods in Ecology and Evolution*__. _accepted_ |
|
45 |
+__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. __*Methods in Ecology and Evolution*__. _accepted_. doi:[10.1111/2041-210X.12628](http://dx.doi.org/10.1111/2041-210X.12628) |
|
46 | 46 |
|
47 | 47 |
|
48 | 48 |
# Introduction |
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@120063 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -42,11 +42,8 @@ library("ggtree") |
42 | 42 |
# Citation |
43 | 43 |
If you use `ggtree` in published research, please cite: |
44 | 44 |
|
45 |
-``` |
|
46 |
-G Yu, D Smith, H Zhu, Y Guan, TTY Lam, |
|
47 |
-ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. |
|
48 |
-Methods in Ecology and Evolution, revised. |
|
49 |
-``` |
|
45 |
+__G Yu__, DK Smith, H Zhu, Y Guan, TTY Lam^\*^. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. __*Methods in Ecology and Evolution*__. _accepted_ |
|
46 |
+ |
|
50 | 47 |
|
51 | 48 |
# Introduction |
52 | 49 |
|
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@119521 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@119011 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -112,11 +112,13 @@ Visualizing an annotated phylogenetic tree with numerical matrix (e.g. genotype |
112 | 112 |
+ [ggtree utilities](ggtreeUtilities.html) |
113 | 113 |
|
114 | 114 |
|
115 |
-More documents can be found in <http://guangchuangyu.github.io/ggtree>. |
|
115 |
+More documents can be found in <https://guangchuangyu.github.io/ggtree>. |
|
116 | 116 |
|
117 |
-# Bugs/Feature requests |
|
117 |
+## Feedback ## |
|
118 | 118 |
|
119 |
-If you have any, [let me know](https://github.com/GuangchuangYu/ggtree/issues). Thx! |
|
119 |
+ - For bugs or feature request, please post to [github issue](https://github.com/GuangchuangYu/ggtree/issues). |
|
120 |
+ - For user questions, please post to [google group](https://groups.google.com/forum/#!forum/bioc-ggtree) or post to [Bioconductor support site](https://support.bioconductor.org/) or [Biostars](https://www.biostars.org/). We are following every post tagged with **ggtree**. |
|
121 |
+ |
|
120 | 122 |
|
121 | 123 |
# Session info |
122 | 124 |
|
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@118925 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -45,8 +45,8 @@ If you use `ggtree` in published research, please cite: |
45 | 45 |
|
46 | 46 |
``` |
47 | 47 |
G Yu, D Smith, H Zhu, Y Guan, TTY Lam, |
48 |
-ggtree: an R package for visualization and annotation of phylogenetic tree with different types of meta-data. |
|
49 |
-revised. |
|
48 |
+ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. |
|
49 |
+Methods in Ecology and Evolution, revised. |
|
50 | 50 |
``` |
51 | 51 |
|
52 | 52 |
# Introduction |
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@117266 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -84,7 +84,16 @@ Details and examples can be found in [Tree Manipulation](treeManipulation.html) |
84 | 84 |
|
85 | 85 |
Most of the phylogenetic trees are scaled by evolutionary distance (substitution/site), in `ggtree` a phylogenetic tree can be re-scaled by any numerical variable inferred by evolutionary analysis (e.g. species divergence time, *dN/dS*, _etc_). Numerical and category variable can be used to color a phylogenetic tree. |
86 | 86 |
|
87 |
-The `ggtree` package provides several layers to annotate a phylogenetic tree, including `geom_tiplab` for adding tip labels, `geom_treescale` for adding a legend of tree scale, `geom_hilight` for highlighting selected clades and `geom_cladelabel` for labelling selected clades. |
|
87 |
+The `ggtree` package provides several layers to annotate a phylogenetic tree, including: |
|
88 |
+ |
|
89 |
++ `geom_cladelabel` for labelling selected clades |
|
90 |
++ `geom_hilight` for highlighting selected clades |
|
91 |
++ `geom_range` to indicate uncertainty of branch lengths |
|
92 |
++ `geom_strip` for adding strip/bar to label associated taxa (with optional label) |
|
93 |
++ `geom_taxalink` for connecting related taxa |
|
94 |
++ `geom_tiplab` for adding tip labels |
|
95 |
++ `geom_treescale` for adding a legend of tree scale |
|
96 |
+ |
|
88 | 97 |
|
89 | 98 |
It supports annotating phylogenetic trees with analyses obtained from R packages and other commonly used evolutionary software. User's specific annotation (e.g. experimental data) can be integrated to annotate phylogenetic trees. `ggtree` provides `write.jplace` function to combine Newick tree file and user's own data to a single `jplace` file that can be parsed and the data can be used to annotate the tree directly in `ggtree`. |
90 | 99 |
|
... | ... |
@@ -100,8 +109,10 @@ Visualizing an annotated phylogenetic tree with numerical matrix (e.g. genotype |
100 | 109 |
+ [Tree Manipulation](treeManipulation.html) |
101 | 110 |
+ [Tree Annotation](treeAnnotation.html) |
102 | 111 |
+ [Advance Tree Annotation](advanceTreeAnnotation.html) |
112 |
++ [ggtree utilities](ggtreeUtilities.html) |
|
113 |
+ |
|
103 | 114 |
|
104 |
-More documents can be found in <http://guangchuangyu.github.io/tags/ggtree>. |
|
115 |
+More documents can be found in <http://guangchuangyu.github.io/ggtree>. |
|
105 | 116 |
|
106 | 117 |
# Bugs/Feature requests |
107 | 118 |
|
git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ggtree@114159 bc3139a8-67e5-0310-9ffc-ced21a209358