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",
topN = NULL,
pal = NULL,
name_prefix = FALSE,
basic_params = NULL,
add_abundance = TRUE,
color_name = "abundance",
add_tiplab = TRUE,
fontsize = NULL
)
taxonomy dataframe
otutab, rowname==rowname(taxonomy)
1~7
result from ann_tree
highlight which level, one of tree$level
"color" or "fill"
topN to show
color pal
keep the prefix like "k__" or "p__" in the label? Default: FALSE
parameters parse to ggtree
logical
color name
logical
tip label fontsize
a treedata
a ggplot
if (interactive()) {
data(otutab, package = "pcutils")
ann_tree(taxonomy, otutab) -> tree
# run yourself
easy_tree(tree, add_abundance = FALSE) -> p
p
}