plot_tree: Plot a phylogenetic tree

Description Usage Arguments Details Value Author(s) References Examples

View source: R/plotting.R

Description

Plot a phylogenetic tree

Usage

1
plot_tree(tree, orient = "h")

Arguments

tree

A phylgenetic tee object of class "phylo"

orient

A string for the orientation of the tree: "v" (vertical) or "h" (horizontal)

Details

This function plots a phylogenetic tree from an object of class "phylo", as produced, for example, by the Canopy package.

Value

a ggtree object

Author(s)

Davis McCarthy and Yuanhua Huang

References

This function makes use of the ggtree package:

Guangchuang Yu, David Smith, Huachen Zhu, Yi Guan, Tommy Tsan-Yuk 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

Examples

1
2
data(example_donor)
plot_tree(tree, orient = "v")

davismcc/cardelino documentation built on Aug. 21, 2019, 3:31 p.m.