Is there a way to plot a matrix/image using the function plot()
with red or green or blue levels, just like the color option grey(level, alpha = NULL)
?
The grey levels range between 0(black) and 1(white).
I am looking for the same thing with RGB:
- Red levels would range between 0(red) and 1(white).
- Green levels would range between 0(green) and 1(white).
- Blue levels would range between 0(blue) and 1(white).
How can I do this?