goldenRatioRolors: Choose n colors using the golden ratio

Description Usage Arguments Examples

Description

This choices n colors for you based on breaking up the hues according to a sequence generated by the golden ratio.

Usage

1
  goldenRatioRolors(n, s = 0.5, v = 1, alpha = 1)

Arguments

n

Integer. The number of colors you want

s

Numeric. Saturation - input into hsv

v

Numeric. Value - input into hsv

alpha

Numeric. The alpha blending value that is input into hsv.

Examples

1
2
3
4
5
6
7
cols <- goldenRatioColors(5)
plot(1:5, 1:5, col = cols)

n <- 5
xs <- seq(1, n)
plot(c(1, n+1), c(0, 1), type = "n")
rect(xs, 0, xs + 1, 1, col = goldenRatioColors(n))

Dasonk/Dmisc documentation built on May 6, 2019, 1:36 p.m.