Description Usage Arguments Value Author(s)
.colScale
customizes the color scale.
1 2 |
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. |
point |
A vector of node numbers or node labels to specify the locations to add points in the tree. |
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 |
col.point |
A color for the point. It has length equal to one. |
legend.label |
A list with three members: "col.branch", "col.other", and "col.point". The elements order in each member matches with the corresponding argument col.branch, col.other and col.point, and will display in the legend. See Examples. |
legend.title |
A vector to specify the title of the legend. It must be named with "branch" and "point" to match with the argument branch and point. |
size.line.legend |
the line size shown in the legend for branch |
legend |
TRUE or FALSE. Default is FALSE. If TRUE, the legend is created. |
ggproto object (color)
Ruizhu Huang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.