dot-colScale: Customize the color

Description Usage Arguments Value Author(s)

Description

.colScale customizes the color scale.

Usage

1
2
.colScale(branch, point, col.branch, col.other, col.point, legend.label,
  legend.title, size.line.legend, legend)

Arguments

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.

Value

ggproto object (color)

Author(s)

Ruizhu Huang


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