| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/colorspace.R |
| 3 |
\name{polarLAB} |
| 4 |
\alias{polarLAB} |
| 5 |
\title{Create polarLAB Colors} |
| 6 |
\usage{ |
| 7 |
polarLAB(L, C, H, names) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{L, C, H}{these arguments give the L, C and H coordinates of the colors. |
| 11 |
The values can be provided in separate \code{L}, \code{C} and \code{H} |
| 12 |
vectors or in a three-column matrix passed as \code{L}.} |
| 13 |
|
| 14 |
\item{names}{A vector of names for the colors (by default the row names of |
| 15 |
\code{L} are used).} |
| 16 |
} |
| 17 |
\value{ |
| 18 |
An object of class \code{polarLAB} which inherits from class \code{color}. |
| 19 |
} |
| 20 |
\description{ |
| 21 |
This function creates colors of class ``polarLAB''; a subclass of the |
| 22 |
virtual \code{\link{color-class}} class. |
| 23 |
} |
| 24 |
\details{ |
| 25 |
The polarLAB space is a transformation of the CIE \eqn{L^*a^*b^*}{L*a*b*} |
| 26 |
space so that the \eqn{a} and \eqn{b} values are converted to polar |
| 27 |
coordinates. The radial component \eqn{C} measures chroma and the angular |
| 28 |
coordinate \eqn{H} is measures hue. |
| 29 |
} |
| 30 |
\examples{ |
| 31 |
## Show the polarLAB space |
| 32 |
set.seed(1) |
| 33 |
x <- sRGB(runif(1000), runif(1000), runif(1000)) |
| 34 |
y <- as(x, "polarLAB") |
| 35 |
head(x) |
| 36 |
head(y) |
| 37 |
plot(y) |
| 38 |
} |
| 39 |
\seealso{ |
| 40 |
\code{\link{RGB}}, \code{\link{HSV}}, \code{\link{XYZ}}, |
| 41 |
\code{\link{LAB}}, \code{\link{polarLAB}}, \code{\link{LUV}}, |
| 42 |
\code{\link{polarLUV}}. |
| 43 |
} |
| 44 |
\author{ |
| 45 |
Ross Ihaka |
| 46 |
} |
| 47 |
\keyword{color} |