Learn R Programming

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.

A discussion forum can be found at https://groups.google.com/forum/#!forum/bioc-ggtree

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: devtools::install_github("GuangchuangYu/ggtree")

Documentation

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

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

More documents can be found in http://guangchuangyu.github.io/tags/ggtree.

Bugs/Feature requests

Copy Link

Version

Version

1.4.11

License

Artistic-2.0

Maintainer

Guangchuang Yu

Last Published

February 15th, 2017

Functions in ggtree (1.4.11)

flip

flip
geom_treescale

geom_treescale
geom_nodepoint

geom_nodepoint
fortify.phylo

fortify
geom_label2

geom_text2
annotation_image

annotation_image
Date2decimal

Date2decimal
collapse

collapse
apeBoot

apeBoot
geom_segment2

geom_segment2
geom_rootpoint

geom_rootpoint
geom_tree

geom_tree
geom_tree2

geom_tree2
get.phylopic

get.phylopic
get.placements

get.placements method
groupClade

groupClade method
get.subs

get.subs method
get_balance_position

get_balance_position
get.treetext

get.treetext method
get.tipseq

get.tipseq method
getNodeNum

getNodeNum
jplace-class

Class "jplace" This class stores information of jplace file.
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
geom_aline

geom_aline
geom_balance

geom_balance
geom_taxalink

geom_taxalink
geom_strip

geom_strip
get_taxa_name

get_taxa_name
get.fields

get.fields method
groupOTU.phylo

groupOTU.phylo
as.data.frame.phylo

as.data.frame
geom_point2

geom_point2
beast-class

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

gzoom method
pmlToSeq

pmlToSeq
print.beastList

print
read.r8s

read.r8s
read.raxml

read.raxml
rotate_tree

rotate_tree
mask

mask
phylip-class

Class "phylip" This class stores phylip tree(s)
phangorn-class

Class "phangorn" This class stores ancestral sequences inferred from 'phangorn'
read.paml_rst

read.paml_rst
raxml-class

Class "raxml" This class stores RAxML bootstrapping analysis result
r8s-class

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

geom_range
geom_text2

geom_text2
geom_tiplab

geom_tiplab
getRoot

getRoot
StatBalance

StatBalance
gzoom.phylo

gzoom
hyphy-class

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

groupOTU method
MRCA

MRCA
merge_tree

merge_tree
nodebar

nodebar
nodepie

nodepie
plot

plot method
%>%

pipe
read.jplace

read.jplace
scale_x_ggtree

scale_x_ggtree
scaleClade

scaleClade
read.nhx

read.nhx
write.jplace

write.jplace
rotate

rotate
phyPML

treeAnno.pml
phylopic

phylopic
reexports

Objects exported from other packages
reroot

reroot method
rescale_tree

rescale_tree
rm.singleton.newick

rm.singleton.newick
stat_hilight

stat_hilight
subview

subview
viewClade

viewClade
read.phylip

read.phylip
%<%

%<%
%<+%

%<+%
add_colorbar

add_colorbar
decimal2Date

decimal2Date
.

.
geom_tippoint

geom_tippoint
geom_tiplab2

geom_tiplab2
identify.gg

identify
get.offspring.tip

get.offspring.tip
inset

inset
get.path

get.path
open_tree

open_tree
paml_rst-class

Class "paml_rst" This class stores information of rst file from PAML output
raxml2nwk

raxml2nwk
read.baseml

read.baseml
stat_balance

stat_balance
theme_inset

theme_inset
theme_transparent

theme_transparent
show,raxml-method

show method
apeBootstrap-class

Class "apeBootstrap" This class stores ape bootstrapping analysis result
as.binary

as.binary
download.phylopic

download.phylopic
expand

expand
geom_cladelabel

geom_cladelabel
geom_hilight

geom_hilight
get_clade_position

get_clade_position
get_heatmap_column_position

get_heatmap_column_position
get.tree

get.tree method
get.treeinfo

get.treeinfo method
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.
msaplot

msaplot
gheatmap

gheatmap
multiplot

multiplot
nhx-class

Class "nhx" This class stores nhx tree
NJ

NJ
read.beast

read.beast
read.codeml_mlc

read.codeml_mlc
rtree

generate random tree
read.hyphy

read.hyphy
read.codeml

read.codeml
scale_color

scale_color method
theme_tree

theme_tree
theme_tree2

theme_tree2