Description Usage Arguments Value Author(s) Examples
.addBranch
colors a branch or some edges.
1 | .addBranch(tree, branch, col.branch, col.other, addTo = NULL, ...)
|
tree |
A phylo object |
branch |
A vector of node numbers labels to specify the branches to be colored. Each branch is represented by its branch node. A leaf node reprents the edge connecting the leaf and its parent. |
col.branch |
A vector of colors. Its length should be one or equals to the length of branch. If col.branch has the same length as branch, the branches are colored correspondingly with the col.branch. The default is blue. |
col.other |
A color for the branches other than those specified in branch |
addTo |
NULL or a plot of a phylo object. |
... |
see also |
A figure
Ruizhu Huang
1 2 3 | # data(tinyTree)
# .addBranch(tree = tinyTree, branch = 17,
# col.branch = "blue", col.other = "grey")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.