plot_phylogenetic_tree: Plot a phylogenetic tree of a tree object using ggtree

plot_phylogenetic_treeR Documentation

Plot a phylogenetic tree of a tree object using ggtree

Description

Plot a phylogenetic tree of a tree object using ggtree

Usage

plot_phylogenetic_tree(tree_obj)

Arguments

tree_obj

A variable which was created by ‘table_to_phyDat’

Value

It returns a ggplot2 object of a phylogenetic tree.

Examples

library(TraceQC)
library(magrittr)
library(cowplot)
library(ggplot2)

data("example_obj_list")
p1 <- example_obj_list$day00 %>%
build_binary_table %>%
table_to_phyDat %>%
plot_phylogenetic_tree
p2 <- example_obj_list$day02 %>%
build_binary_table %>%
table_to_phyDat %>%
plot_phylogenetic_tree
p3 <- example_obj_list$day14 %>%
build_binary_table %>%
table_to_phyDat %>%
plot_phylogenetic_tree

plot_grid(p1 + ggtitle("Day 0"),
          p2 + ggtitle("Day 2"),
          p3 + ggtitle("Day 14"),
          nrow=1)


LiuzLab/TraceQC documentation built on April 19, 2022, 1:29 p.m.