add_strip {pctax} | R Documentation |
add strips for a tree plot
Description
add strips for a tree plot
Usage
add_strip(trp, some_tax, flat_n = 5, strip_params = NULL)
Arguments
trp |
tree plot from |
some_tax |
some tax you want to add strip |
flat_n |
flat the text when taxa number more than |
strip_params |
parameters parse to |
Value
tree plot
Examples
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)
}
[Package pctax version 0.1.1 Index]