File: col2hex.Rd

package info (click to toggle)
gplots 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,580 kB
  • sloc: makefile: 2
file content (24 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (10)
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}