gg.rainbow: gg.rainbow

View source: R/common.R

gg.rainbowR Documentation

gg.rainbow

Description

Mimic default colour palette of ggplot2. Credit: John Colby, https://stackoverflow.com/questions/8197559/emulate-ggplot2-default-color-palette

Usage

gg.rainbow(n, c = 100, l = 65, alpha = 1)

Arguments

n:

number of colours to generate

c:

chroma, radial component of hue colour space (saturation)

l:

luminance in range [0, 100], vertical component of hue colour space (converges to black as l approaches 0)

Value

vector of colour specification strings


ArtPoon/ggfree documentation built on July 11, 2024, 11:15 a.m.