gg_color_hue: ggplot2-like colour scale in HCL space

View source: R/utils.R

gg_color_hueR Documentation

ggplot2-like colour scale in HCL space

Description

ggplot2-like colour scale in HCL space

Usage

gg_color_hue(n, hue_min = 8, hue_max = 290, l = 52, c = 100)

Arguments

n

Number of colours to return.

hue_min

Minimum hue value in the range ⁠(0,360)⁠

hue_max

Maximum hue value in the range ⁠(0,360)⁠

l

Luminance in the range ⁠(0,100)⁠

c

Chroma of the colour.

Details

See the grDevices::hcl() function for details.

Examples

gg_color_hue(10)
plot(1:6, col = gg_color_hue(6), pch = 20, cex = 3)

pbs-assess/gfsynopsis documentation built on March 26, 2024, 7:30 p.m.