ann_tree | R Documentation |
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
)
f_tax |
taxonomy dataframe |
otutab |
otutab, rowname==rowname(taxonomy) |
level |
1~7 |
tree |
result from |
highlight |
highlight which level, one of |
colorfill |
"color" or "fill" |
pal |
color pal |
name_prefix |
keep the prefix like "k__" or "p__" in the label? Default: FALSE |
basic_params |
parameters parse to |
add_abundance |
logical |
color_name |
color name |
add_tiplab |
logical |
fontsize |
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
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.