Create LAB Colors
This function creates colors of class “LAB”; a subclass of the virtual
color-class
class.
LAB(L, A, B, names)
L, A, B |
these arguments give the L, A and B coordinates of the colors.
The values can be provided in separate |
names |
a vector of names for the colors (by default the row names of
|
The L
, A
and B
values give the coordinates of the
colors in the CIE L*a*b* space. This is a transformation
of the 1931 CIE XYZ space which attempts to produce perceptually based axes.
Luminance takes values between 0 and 100, and the other coordinates
typically take values between -100 and 100, although these values can also
be exceeded by highly saturated colors. The a and b coordinates
measure positions on green/red and blue/yellow axes.
An object of class LAB
which inherits from class color
.
Ross Ihaka
## Show the LAB space set.seed(1) x <- RGB(runif(1000), runif(1000), runif(1000)) y <- as(x, "LAB") head(x) head(y) plot(y)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.