dot-addBranch: Color a branch

Description Usage Arguments Value Author(s) Examples

Description

.addBranch colors a branch or some edges.

Usage

1
.addBranch(tree, branch, col.branch, col.other, addTo = NULL, ...)

Arguments

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 ggtree

Value

A figure

Author(s)

Ruizhu Huang

Examples

1
2
3
# data(tinyTree)
# .addBranch(tree = tinyTree, branch = 17,
# col.branch = "blue", col.other = "grey")

markrobinsonuzh/treeAGG documentation built on May 26, 2019, 9:32 a.m.