color.cone {mining}R Documentation

Depict colors geometrically

Description

Plots named colors as points in a three-dimensional cone.

Usage

color.cone(col,cex=2,light=T,...)

Arguments

col a vector of strings, naming colors.
cex a number controlling the size of the points.
light If TRUE, the cone will be surrounded by point light sources.

Details

The colors are mapped into Hue-Saturation-Lightness (HSL). Hue gives the angle around the cone, Saturation the radial distance from the center line, and Lightness the height from the base of the cone.

Value

Produces a VRML file which is opened by a VRML viewer.

Note

The high-lightness, high-saturation part of the cone will always be empty, because these colors are not achievable on computer displays (due to the RGB representation).

Author(s)

Tom Minka

References

Rich Franzen's Wheel of Saturation, Intensity, and Hue. http://home.att.net/~rocq/SIHwheel.html

Charles Poynton's Color FAQ. http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html

Examples

color.cone(YlGnBu.colors(8))
color.cone(YR.colors(16))
color.cone(RYB.colors(7))
color.cone(topo.colors(20))
# reveals how topo.colors is not sequential in lightness

[Package Contents]