1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
\name{col2hex}
\alias{col2hex}
\title{Convert color names to hex RGB strings}
\description{
Convert color names to hex RGB strings
}
\usage{
col2hex(cname)
}
\arguments{
\item{cname}{Color name(s)}
}
\value{
Character vector giving the hex color code translation of the provided
color names.
}
\author{Gregory R. Warnes}
\seealso{
\code{\link{col2rgb}}, \code{\link{colors}}, \code{\link{rgb}}
}
\examples{
col2hex(c("red","yellow","lightgrey"))
}
\keyword{color}
|