[R] How to convert color to black & white

Muhammad Subianto subianto at gmail.com
Fri May 13 20:40:05 CEST 2005


Dear all,
Could someone please explain to me how to convert color to black & white.
For example:
barplot(1:5,col = rainbow(5))
Because I need to print my plot to save my ink color printer.
I don't want to convert to grayscale, but keep it as an RGB.
I  would be very happy if anyone could help me.
Thank you very much in advance.

Kindly regards,
Muhammad Subianto




More information about the R-help mailing list