\Header{gray}{Gray Level Specification}
\alias{grey}{gray}
\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{\Link{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{\Link{rainbow}},
\code{\Link{hsv}},
\code{\Link{rgb}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
gray(0:8 / 8)
\end{ExampleCode}
\end{Examples}

