colorwheel: Visualize color palettes using a color wheel

Description Usage Arguments Value Author(s) See Also Examples

View source: R/colorwheel.R

Description

colorwheel allows you to easily visualize a color palette by plotting all hues for the specified chroma and luminance values using a color wheel

Usage

1
2
colorwheel(chroma = 100, luminance = 60, labels = TRUE, alpha = 1,
  fixup = TRUE)

Arguments

chroma

chroma value for palette

luminance

luminance value for palette

labels

logical, should degree labels be shown

alpha

transparency level defined on the interval [0, 1] where 0 = transparent and 1 = opaque

fixup

logical, should RGB value be corrected (see hcl

Value

colorwheel returns a pie chart showing the specified colors

Author(s)

Michael Malick

See Also

qpal dpal spal

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
colorwheel()
colorwheel(chroma = 50, luminance = 60)
colorwheel(chroma = 100, luminance = 75)
colorwheel(chroma = 100, luminance = 25)
colorwheel(chroma = 100, luminance = 0)
colorwheel(chroma = 0, luminance = 50)

par(mfrow = c(4, 3), mar = c(2, 0, 1.5, 0))
for(i in seq(0, 100, 10))
   colorwheel(chroma = i, labels = TRUE, fixup = TRUE)

par(mfrow = c(3, 3), mar = c(2, 0, 1.5, 0))
for(i in seq(20, 100, 10))
    colorwheel(luminance = i, labels = TRUE)

michaelmalick/r-chroma documentation built on May 22, 2019, 9:51 p.m.