plot_phylogenetic_tree | R Documentation |
Plot a phylogenetic tree of a tree object using ggtree
plot_phylogenetic_tree(tree_obj)
tree_obj |
A variable which was created by ‘table_to_phyDat’ |
It returns a ggplot2 object of a phylogenetic tree.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.