Diff of /man/col2hex.Rd [000000] .. [226bc8]

Switch to unified view

a b/man/col2hex.Rd
1
\name{col2hex}
2
\alias{col2hex}
3
\title{
4
Converts color names with alpha to hex
5
}
6
\description{
7
The function takes the color names as specified in colors() together
8
with alpha levels and transforms it to hex representation. Optionally
9
it can also name the returned vector by names provided by the user.
10
}
11
\usage{
12
col2hex(cols, alpha=1, names=NA)
13
}
14
\arguments{
15
  \item{cols}{character vector}
16
  \item{alpha}{numeric, ranged 0-1}
17
  \item{names}{character vector, default NA}
18
}
19
\value{
20
numeric vector
21
}
22
\author{
23
Małgorzata Oleś <dr.malgorzata.oles@gmail.com>
24
}
25
\examples{
26
col2hex(cols=c("hotpink","skyblue"), alpha=0.5)
27
col2hex(cols=c("hotpink","skyblue"), alpha=0.5, names = c("A","B"))
28
}