?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 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?

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to