The R Project SVN R

Rev

Rev 59039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 60712
Line 1... Line 1...
1
% File src/library/grDevices/man/gray.Rd
1
% File src/library/grDevices/man/gray.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2007 R Core Team
3
% Copyright 1995-2012 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{gray}
6
\name{gray}
7
\alias{gray}
7
\alias{gray}
8
\alias{grey}
8
\alias{grey}
9
\title{Gray Level Specification}
9
\title{Gray Level Specification}
10
\description{
10
\description{
11
  Create a vector of colors from a vector of gray levels.
11
  Create a vector of colors from a vector of gray levels.
12
}
12
}
13
\usage{
13
\usage{
14
gray(level)
14
gray(level, alpha = NULL)
15
grey(level)
15
grey(level, alpha = NULL)
16
}
16
}
17
\arguments{
17
\arguments{
18
  \item{level}{a vector of desired gray levels between \code{0} and
18
  \item{level}{a vector of desired gray levels between \code{0} and
19
    \code{1}; zero indicates \code{"black"} and one indicates
19
    \code{1}; zero indicates \code{"black"} and one indicates
20
    \code{"white"}.}
20
    \code{"white"}.}
-
 
21
  \item{alpha}{the opacity, if specified.}
21
}
22
}
22
\details{
23
\details{
23
  The values returned by \code{gray} can be used with a \code{col=}
24
  The values returned by \code{gray} can be used with a \code{col=}
24
  specification in graphics functions or in \code{\link{par}}.
25
  specification in graphics functions or in \code{\link{par}}.
25
 
26