rainbow.lab: Rainbow based on circle of lab color space

View source: R/rainbow.R

rainbow.labR Documentation

Rainbow based on circle of lab color space

Description

Rainbow based on circle of lab color space

Usage

rainbow.lab(
  n,
  start = 1.5,
  end = -3,
  alpha = 1,
  lightScale = 0,
  lightMultiple = 0.7
)

Arguments

n

number of colors desired

start

start angle (in proportion of circle) in lab space

end

end angle (in proportion of circle) in lab space

alpha

transparency (0 for transparent, 1 for opaque)

lightScale

exponent to scale lightness by

lightMultiple

multiple to scale lightness by

Value

vector of color strings

Examples

cols<-rainbow.lab(100)
plot(1:100,cex=3,col=cols,lwd=5)
cols<-rainbow.lab(100,lightScale=1)
plot(1:100,col=cols,lwd=5)

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.