Learn R Programming

lessR (version 3.6.6)

showWheel: Hue, Chroma, Luminance (hcl) Color Space Wheel

Description

Generates a color wheel for specified hcl colors at fixed values of chroma and luminance for a range of hues, or for a manually specified set of colors.

Usage

showWheel(clr=NULL, h.beg=0, h.end=300, n.colors=10, c=100, l=65,
           radius=0.9)

Arguments

clr

Optional specified colors to plot on the wheel. If specified, then the following parameters are not relevant.

h.beg

Beginning hue, 0 to 360.

h.end

Ending hue, 0 to 360.

n.colors

Number of hues to display.

c

Constant value of chroma.

l

Constant value of luminance.

radius

Size of wheel.

Details

The hcl color space can provide palette of colors that have the same gray-scale intensities if desaturated. That means, no brightness bias for viewing different colors that represent different areas, such as in a bar chart of two variables, or a pie chart.

Plots a hcl color wheel with constant chroma and luminance. Or, enter a set of custom colors. Also lists the hue values and associated colors.

See Also

hcl.

Examples

Run this code
# NOT RUN {
# default color wheel
showWheel()

# generate a color wheel with 10 slices, starting at h=220 (blue)
showWheel(h.beg=220, h.end=200, n.colors=10)

# manual entry
showWheel(c("black", "blue", "red"))
# }

Run the code above in your browser using DataLab