Learn R Programming

⚠️There's a newer version (1.4.11) of this package.Take me there.

ggtree: a phylogenetic tree viewer for different types of tree annotations

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.

Authors

Guangchuang Yu and Tommy Tsan-Yuk Lam, School of Public Health, The University of Hong Kong.

Citation

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

License

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

Installation

To install:

  • the latest released version: biocLite("ggtree")
  • the latest development version: install_github("GuangchuangYu/ggtree")

Documentation

To view the vignette of ggtree installed in your system, start R and enter:

vignette("ggtree", package = "ggtree")

Bugs/Feature requests

Copy Link

Version

Version

1.2.1

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Guangchuang Yu

Last Published

February 15th, 2017

Functions in ggtree (1.2.1)

%<+%

%<+%
aes

creates a lists of unevaluated expressions
download.phylopic

download.phylopic
expand

expand
geom_tippoint

geom_tippoint
geom_tree

geom_tree
get.treetext

get.treetext method
getNodeNum

getNodeNum
gheatmap

gheatmap
ggtree

visualizing phylogenetic tree and heterogenous associated data based on grammar of graphics ggtree provides functions for visualizing phylogenetic tree and its associated data in R.
raxml-class

Class "raxml" This class stores RAxML bootstrapping analysis result
read.baseml

read.baseml
rm.singleton.newick

rm.singleton.newick
add_colorbar

add_colorbar
add_legend

add_legend
decimal2Date

decimal2Date
.

.
get_taxa_name

get_taxa_name
show,raxml-method

show method
get.fields

get.fields method
subview

subview
rotate

rotate
get.tree

get.tree method
ggplotGrob

generate a ggplot2 plot grob
getRoot

getRoot
get.treeinfo

get.treeinfo method
jplace-class

Class "jplace" This class stores information of jplace file.
mask

mask
flip

flip
fortify.phylo

fortify
geom_aline

geom_aline
geom_hilight

geom_hilight
read.beast

read.beast
read.codeml_mlc

read.codeml_mlc
read.r8s

read.r8s
read.raxml

read.raxml
NJ

NJ
paml_rst-class

Class "paml_rst" This class stores information of rst file from PAML output
read.jplace

read.jplace
read.paml_rst

read.paml_rst
scale_x_ggtree

scale_x_ggtree
scaleClade

scaleClade
theme_tree2

theme_tree2
%<%

%<%
annotation_image

annotation_image
as.binary

as.binary
codeml_mlc-class

Class "codeml_mlc" This class stores information of mlc file frm codeml output
codeml-class

Class "codeml" This class stores information of output from codeml
get.phylopic

get.phylopic
get.placements

get.placements method
gplot

gplot
groupClade

groupClade method
merge_tree

merge_tree
msaplot

msaplot
read.hyphy

read.hyphy
read.codeml

read.codeml
annotation_clade

annotation_clade
annotation_clade2

annotation_clade2
geom_tiplab

geom_tiplab
geom_text

text annotations
rtree

generate random tree
scale_color

scale_color method
theme_transparent

theme_transparent
theme_tree

theme_tree
as.data.frame.phylo

as.data.frame
beast-class

Class "beast" This class stores information of beast output
collapse

collapse
Date2decimal

Date2decimal
geom_rootpoint

geom_rootpoint
geom_nodepoint

geom_nodepoint
get.subs

get.subs method
get.tipseq

get.tipseq method
groupOTU.phylo

groupOTU.phylo
groupOTU

groupOTU method
get.offspring.tip

get.offspring.tip
gzoom

gzoom method
get.path

get.path
gzoom.phylo

gzoom
hilight

hilight
hyphy-class

Class "hyphy" This class stores information of HYPHY output
phylopic

phylopic
r8s-class

Class "r8s" This class stores output info from r8s
plot

plot method
write.jplace

write.jplace
%>%

pipe
read.tree

read newick tree
reroot

reroot method