powered by
Annotate a tree
Easy way to plot a phylogenetic tree
ann_tree(f_tax, otutab = NULL, level = ncol(f_tax))easy_tree( tree, highlight = "Phylum", colorfill = "color", pal = NULL, name_prefix = FALSE, basic_params = NULL, add_abundance = TRUE, color_name = "abundance", add_tiplab = TRUE, fontsize = NULL )
easy_tree( tree, highlight = "Phylum", colorfill = "color", pal = NULL, name_prefix = FALSE, basic_params = NULL, add_abundance = TRUE, color_name = "abundance", add_tiplab = TRUE, fontsize = NULL )
a treedata
a ggplot
taxonomy dataframe
otutab, rowname==rowname(taxonomy)
1~7
result from ann_tree
ann_tree
highlight which level, one of tree$level
tree$level
"color" or "fill"
color pal
keep the prefix like "k__" or "p__" in the label? Default: FALSE
parameters parse to ggtree
ggtree
logical
color name
tip label fontsize
if (interactive()) { data(otutab, package = "pcutils") ann_tree(taxonomy, otutab) -> tree # run yourself easy_tree(tree, add_abundance = FALSE) -> p p }
Run the code above in your browser using DataLab