[R] color gradation inversion.

Naoki Irie asurain at cdb.riken.jp
Tue Jun 16 11:13:57 CEST 2009


Dear list


I'm having trouble with inverting color gradation.

As seen in the "rgl" example,

library(rgl)
example(rgl.surface)

I understand that I can assign colors to heights for each point.

col <- colorlut[ y-ylim[1]+1 ] # assign colors to heights for each point

However, I am now trying to assign inverted colors.
(top colored green, and bottom colored gray).

Is there any way that I can do this?

Thanks.

NI




More information about the R-help mailing list