getBlueRedScale: Gets a color scale from blue to red

View source: R/plots.R

getBlueRedScaleR Documentation

Gets a color scale from blue to red

Description

Gets a color scale from blue to red in hex format.

Usage

getBlueRedScale(n = 256, whiteLevel = 0.9)

Arguments

n

an integer specifying the amount of colors to split the scale in.

whiteLevel

a numeric specifying the maximum whiteness for red, green and blue.

Value

Returns a character vector containing colors in hex format.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

rbs = getBlueRedScale()

uzh/ezRun documentation built on April 19, 2024, 8:25 a.m.