TreeTools (version 0.1.3)

SupportColour: Support colour

Description

Colour value with which to display node support.

Usage

SupportColour(support, show1 = TRUE)

SupportColor(support, show1 = TRUE)

Arguments

support

A numeric vector of values in the range 0--1.

show1

Logical specifying whether to display values of 1. A transparent white will be returned if FALSE.

Value

A string containing the hexadecimal code for a colour picked from a diverging scale, or red if a value is invalid.

Examples

Run this code
# NOT RUN {
SupportColour(0:4 / 4, show1 = FALSE)
# }

Run the code above in your browser using DataLab