RGBColVec: Alternative color schemes

Description Usage Arguments Details Value Author(s) See Also Examples

Description

RGBColVec returns a vector of colors that is equally spaced from red through black to green, suitable for heatmaps.

Usage

1
2
3
RGBColVec(nrgcols = 12)

RainbowPastel(n, blanche = 200, ...)

Arguments

nrgcols, n

desired number of colors

blanche

the amount of whiteness added; value between 0 and 255

...

extra arguments to rainbow

Details

RainbowPastel returns a vector of colors like rainbow, but more pastelly.

Value

A character vector of length nrgcols or n giving the RGB codes for the colors.

Author(s)

RGBColVec is based on function rgcolors.func in package sma by Sandrine Dudoit and Jane Fridlyand.

RGBColVec as documented and RainbowPastel by Alexander Ploner

See Also

heat.colors

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
 # A Color Wheel
pie(rep(1,12), col=RGBColVec(12))

# A color wheel in the original rainbow
pie(rep(1,6), col=rainbow(6))

# Pastel
pie(rep(1,6), col=RainbowPastel(6))

# Less whiteness
pie(rep(1,6), col=RainbowPastel(6, blanche=127))

# More steps require less whiteness
pie(rep(1,12), col=RainbowPastel(12, blanche=60))

# Test your screen & eyes: any differences?
pie(rep(1,12), col=RainbowPastel(12, blanche=80))

## End(Not run) ## end dontrun

alexploner/Heatplus documentation built on May 23, 2021, 2:01 p.m.