gray Gray Level Specification
Description
Create a vector of colors from a vector of gray levels.
Usage
gray(level, alpha) grey(level, alpha)
Arguments
level | a vector of desired gray levels between |
alpha | the opacity, if specified. |
Details
The values returned by gray can be used with a col= specification in graphics functions or in par.
grey is an alias for gray.
Value
A vector of colors of the same length as level.
See Also
Examples
gray(0:8 / 8)
Copyright (©) 1999–2012 R Foundation for Statistical Computing.
Licensed under the GNU General Public License.