Debian Codegraph @

man/RGB.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/colorspace.R
3 \name{RGB}
4 \alias{RGB}
5 \title{Create RGB Colors}
6 \usage{
7 RGB(R, G, B, names)
8 }
9 \arguments{
10 \item{R, G, B}{these arguments give the red, green and blue intensities of the
11 colors (the values should lie between 0 and 1). The values can be provided
12 in separate \code{R}, \code{G} and \code{B} vectors or in a three-column
13 matrix passed as \code{R}.}
14
15 \item{names}{A vector of names for the colors (by default the row names of
16 \code{R} are used).}
17 }
18 \value{
19 An object of class \code{RGB} which inherits from class \code{color}.
20 }
21 \description{
22 This function creates colors of class RGB; a subclass of the virtual
23 \code{\link{color-class}} class.
24 }
25 \details{
26 This function creates colors in the linearized sRGB color space (IEC
27 standard 61966).
28 }
29 \examples{
30 # Create a random set of colors
31 set.seed(1)
32 RGB(R = runif(20), G = runif(20), B = runif(20))
33 }
34 \seealso{
35 \code{\link{sRGB}}, \code{\link{HSV}}, \code{\link{XYZ}},
36 \code{\link{LAB}}, \code{\link{polarLAB}}, \code{\link{LUV}},
37 \code{\link{polarLUV}}.
38 }
39 \author{
40 Ross Ihaka
41 }
42 \keyword{color}