ggcols: ggplot colors

Description Usage Arguments See Also Examples

View source: R/ggplots.R

Description

A function to replicate default ggplot colors.

Usage

1
ggcols(n, l = 65, c = 100)

Arguments

n

number of colors

l

a value in the range [0, 100] giving the luminance of the color; for a given combination of hue and chroma, only a subset of this range is possible

c

the chroma of the color; the upper bound for chroma depends on hue and luminance

See Also

hcl

Examples

1
plot(rnorm(1000), col = ggcols(1000), pch = 19)

raredd/plotr documentation built on Nov. 13, 2018, 7:05 a.m.