[R] creating rainbow gradients

hadley wickham h.wickham at gmail.com
Thu Sep 18 00:49:04 CEST 2008


On Wed, Sep 17, 2008 at 3:58 PM, Gillian Silver <haettulegur at gmail.com> wrote:
> Hi, how can I create a rainbow gradient in R? For example, let's say I have
> a plot of y = x...and I want the plot to go from red -> orange -> yellow ->
> green -> blue -> etc.

Why would you want to?  See
http://epub.wu-wien.ac.at/dyn/openURL?id=oai:epub.wu-wien.ac.at:epub-wu-01_c87
 for some better alternatives.

Hadley


-- 
http://had.co.nz/



More information about the R-help mailing list