\HeaderA{gray}{Gray Level Specification}{gray}
\aliasA{grey}{gray}{grey}
\keyword{color}{gray}
\begin{Description}\relax
Create a vector of colors from a vector of gray levels.
\end{Description}
\begin{Usage}
\begin{verbatim}
gray(level)
grey(level)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{level}] a vector of desired gray levels between \code{0} and
\code{1}; zero indicates \code{"black"} and one indicates
\code{"white"}.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The values returned by \code{gray} can be used with a \code{col=}
specification in graphics functions or in \code{\LinkA{par}{par}}.

\code{grey} is an alias for \code{gray}.
\end{Details}
\begin{Value}
A vector of \dQuote{colors} of the same length as \code{level}.
\end{Value}
\begin{SeeAlso}\relax
\code{\LinkA{rainbow}{rainbow}},
\code{\LinkA{hsv}{hsv}},
\code{\LinkA{rgb}{rgb}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
gray(0:8 / 8)
\end{ExampleCode}
\end{Examples}

