The ggtree
package extending the ggplot2
package. It based on grammar of graphics and takes all the good parts of ggplot2
.
ggtree
is designed for not only viewing phylogenetic tree but also displaying annotation data in the tree.
Guangchuang Yu and Tommy Tsan-Yuk Lam, School of Public Health, The University of Hong Kong.
Please cite the following article when using ggtree
:
G Yu, D Smith, H Zhu, Y Guan, TTY Lam,
ggtree: an R package for visualization and annotation of phylogenetic tree
with different types of meta-data.
Methods in Ecology and Evolution, submitted
All source code is copyright, under the Artistic-2.0 License. For more information on Artistic-2.0 License see http://opensource.org/licenses/Artistic-2.0
To install:
- the latest released version:
biocLite("ggtree")
- the latest development version:
install_github("GuangchuangYu/ggtree")
- viewing and annotating phylogenetic tree with ggtree
- updating a tree view using %<% operator
- an example of drawing beast tree using ggtree
- flip and rotate branches in ggtree
- ggtree with funny fonts
- annotate phylogenetic tree with local images
To view the vignette of ggtree
installed in your system, start R
and enter:
vignette("ggtree", package = "ggtree")
- If you have any, let me know. Thx!