powered by
Create a vector of colors from a vector of gray levels.
gray(level, alpha = NULL) grey(level, alpha = NULL)
a vector of desired gray levels between 0 and 1; zero indicates "black" and one indicates "white".
0
1
"black"
"white"
the opacity, if specified.
A vector of colors of the same length as level.
level
The values returned by gray can be used with a col= specification in graphics functions or in par.
gray
col=
par
grey is an alias for gray.
grey
rainbow, hsv, hcl, rgb.
rainbow
hsv
hcl
rgb
# NOT RUN { gray(0:8 / 8) # }
Run the code above in your browser using DataLab