[R] Color Function

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Feb 18 11:04:49 CET 2009



enrico.foscolo2 at libero.it wrote:
> Good Morning to Everybody,
> 
> I am searching a function which could define a 
> vector of colors from a vector of gray, from white to black (not from black to 
> white as the function gray()).
> 

rev(gray())

Uwe Ligges


> I have to use it in the function image(), 
> parameter "col".
> 
> Thank You very much,
> 
> Enrico Foscolo
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list