
plots a tree along with a series of taxonomic ranks
plot_tree_ranks(
tree,
taxonomy,
main = NULL,
type = "unrooted",
ranks = common_ranks,
size = 2,
guide_size = NULL,
legend_cutoff = 25,
...
)
to be plotted, use layout_tree to layout tree.
A data.frame with an accession field corresponding to the tree tip labels.
An optional title for the plot
The type of tree to plot, default unrooted.
The ranks to include, defaults to all common ranks, if null print all ranks.
The size of the colored points
The size of the length guide. If NULL auto detects a reasonable size.
The number of different taxa names after which the names are no longer printed.
additional arguments passed to layout_tree_ape
plot_tree
to plot only a single rank or the just the
tree layout.
# NOT RUN {
library(gridExtra)
library(directlabels)
#plot all the common ranks
plot_tree_ranks(mammals_16S$tree, mammals_16S$taxonomy)
#plot specific ranks, with a larger dot size
plot_tree_ranks(mammals_16S$tree, mammals_16S$taxonomy,
ranks=c('kingdom', 'class', 'family'), size=3)
# }
Run the code above in your browser using DataLab