[R] color gradation inversion.
David Winsemius
dwinsemius at comcast.net
Tue Jun 16 14:53:53 CEST 2009
?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
More information about the R-help
mailing list