[R] color gradation inversion.

2009-06-16 Thread Naoki Irie
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

Re: [R] color gradation inversion.

2009-06-16 Thread David Winsemius
?rev On Jun 16, 2009, at 5:13 AM, Naoki Irie wrote: 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