rainbow2: Rainbow from blue to red

View source: R/rainbow2.R

rainbow2R Documentation

Rainbow from blue to red

Description

Reversed rainbow with different defaults, resulting in a color vector from blue (good) to red (bad)

Usage

rainbow2(n = 10, s = 1, v = 1, start = 0, end = 0.7, alpha = 1)

Arguments

n

number of colors. DEFAULT: 10

s, v

saturation and value as in rainbow. DEFAULT: 1

start

start color. DEFAULT: 0

end

end color. DEFAULT: 0.7

alpha

transparency. DEFAULT: 1)

Value

A character vector of color names.

Author(s)

Berry Boessenkool, berry-b@gmx.de, Sept 2014

See Also

seqPal for a better palette, rainbow

Examples


plot(1:10, pch=16, cex=2, col=rainbow2(10))


berryFunctions documentation built on April 12, 2023, 12:36 p.m.