[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

[R] labels in rgl.sphere

2009-05-28 Thread Naoki Irie
Dear R list I am using rgl.sphere to visualize scatter plot data in three dimensional space. Thanks to the rgl library, I can easily find out the data point that I am interested in. However, as I can not see the labels of each data point directly in RGL window, I usually look for the valu