redWhiteGreen: Red-white-green color sequence

Description Usage Arguments Details Value Author(s) Examples

View source: R/Functions.R

Description

Generate a red-white-green color sequence of a given length.

Usage

1

Arguments

n

number of colors to be returned

gamma

color correction power

Details

The function returns a color vector that starts with pure green, gradually turns into white and then to red. The power gamma can be used to control the behaviour of the quarter- and three quarter-values (between red and white, and white and green, respectively). Higher powers will make the mid-colors more white, while lower powers will make the colors more saturated, respectively.

Value

A vector of colors of length n.

Author(s)

Peter Langfelder

Examples

1
2
3
4

nosarcasm/WGCNA documentation built on May 28, 2019, 1:01 p.m.