R/phylogenetic.R
add_strip.Rd
add strips for a tree plot
add_strip(trp, some_tax, flat_n = 5, strip_params = NULL)
tree plot from ggtree
ggtree
some tax you want to add strip
flat the text when taxa number more than flat_n.
flat_n
parameters parse to geom_strip
geom_strip
tree plot
# \donttest{ data(otutab, package = "pcutils") # run yourself if (interactive()) { ann_tree(taxonomy, otutab) -> tree easy_tree(tree) -> p some_tax <- table(taxonomy$Phylum) %>% sort(decreasing = TRUE) %>% head(5) %>% names() add_strip(p, some_tax) } # }