[R] RGB function

Kartik Pappu kartik.pappu at gmail.com
Mon Jul 31 06:36:34 CEST 2006


Hi all,

I created three separate square matrices (lets say R, G, and B).  each
one contains a series of values between 0 and 1.  I want to be able to
take for example R[1], G[1], B[1] and create a rgb color value into a
fourth matrix.  I tried using the rgb function but I must be doing
something wrong because it fails with the following error message.

(list) object cannot be coerced to 'double'.

Any ideas on how I could do this.

Kartik



More information about the R-help mailing list