ggcols: ggplot colors

View source: R/ggplots.R

ggcolsR Documentation

ggplot colors

Description

A function to replicate default ggplot colors.

Usage

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

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


raredd/plotr documentation built on Nov. 19, 2023, 4:09 a.m.