\HeaderA{rgcolors.func}{Red and Green Color Specification}{rgcolors.func}
\keyword{color}{rgcolors.func}
\begin{Description}\relax
This function creates a vector of n ``contiguous'' colors,
corresponding to n intensities (between 0 and 1) of the red, green
and blue primaries, with the blue intensities set to zero. The
values returned by \code{rgcolors.func} can be used with a
\code{col=} specification in graphics functions or in
\code{\LinkA{par}{par}}.
\end{Description}
\begin{Usage}
\begin{verbatim}
rgcolors.func(n=50)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{n}] the number of colors (>= 1) to be used in the red and
green palette. 
\end{ldescription}
\end{Arguments}
\begin{Value}
a character vector of color names. Colors are specified
directly in terms of their RGB components with a string of the form
"\#RRGGBB", where each of the pairs RR, GG, BB consist of two
hexadecimal digits giving a value in the range 00 to FF.
\end{Value}
\begin{Author}\relax
Sandrine Dudoit, \email{sandrine@stat.berkeley.edu} \\
Jane Fridlyand, \email{janef@stat.berkeley.edu}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{plot.cor}{plot.cor}}, \code{\LinkA{plot.mat}{plot.mat}},
\code{\LinkA{colors}{colors}}, \code{\LinkA{rgb}{rgb}}, \code{\LinkA{image}{image}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
rgcolors.func(n=5)
## The following vector is returned:
## "#00FF00" "#40BF00" "#808000" "#BF4000" "#FF0000"
\end{ExampleCode}
\end{Examples}

