View source: R/plottingFuncs.R
plotTreeHighlightBranches | R Documentation |
Plot the provided tree, (optionally) rerooted, with specified branches highlighted
plotTreeHighlightBranches(
tree,
outgroup = NULL,
hlspecies,
hlcols = NULL,
main = "",
useGG = FALSE
)
useGG |
option to creat plot with ggtree. Improves plot readability for most data sets. |
tree. |
A tree object. |
outgroup. |
A vector of species to use to root the tree. If not provided, the tree remains unrooted. |
hlspecies. |
A vector of species whose terminal branches to highlight, or a vector of branch numbers within the tree. |
hlcols. |
Colors to use in highlighting the branches. If not specified, will use default R colors. |
main. |
Main text for plot. |
A plot of the the (optionally rerooted) tree, with branches highlighted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.