https://github.com/cran/colorspace
Tip revision: 4799584681ddf5cfba2e56c254894567dff479b5 authored by Ross Ihaka on 24 April 2009, 00:00:00 UTC
version 1.0-1
version 1.0-1
Tip revision: 4799584
polarLAB.Rd
\name{polarLAB}
\alias{polarLAB}
\title{Create polarLAB Colors}
\description{
This function creates colors of class ``polarLAB'';
a subclass of the virtual ``color'' class.
}
\usage{
polarLAB(L, C, H, names)
}
\arguments{
\item{L,C,H}{these arguments give the L, C and H coordinates of
the colors. The values can be provided in separate \code{L},
\code{C} and \code{H} vectors or in a three-column matrix
passed as \code{L}.}
\item{names}{A vector of names for the colors (by default the row
names of \code{L} are used).}
}
\details{
The polarLAB space is a transformation of the CIE \eqn{L^*a^*b^*}{L*a*b*}
space so that the \eqn{a} and \eqn{b} values are converted to polar
coordinates. The radial component \eqn{C} measures chroma and
the angular coordinate \eqn{H} is measures hue.
}
\value{
An object of class ``polarLAB'' which inherits from class ``color.''
}
%\references{ ~put references to the literature/web site here ~ }
\author{Ross Ihaka}
%\note{ ~~further notes~~ }
\seealso{
\code{\link{RGB}},
\code{\link{HSV}},
\code{\link{XYZ}},
\code{\link{LAB}},
\code{\link{polarLAB}},
\code{\link{LUV}},
\code{\link{polarLUV}}.
}
\examples{
## Show the polarLAB space
x = RGB(runif(1000), runif(1000), runif(1000))
plot(as(x,"polarLAB"))
}
\keyword{color}