plot_tree: Plot a phylogenetic tree

View source: R/plotting.R

plot_treeR Documentation

Plot a phylogenetic tree

Description

Plot a phylogenetic tree

Usage

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

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

davismcc/cardelino documentation built on Nov. 19, 2022, 2:44 a.m.