Hello,

I have a matrix with value varying from -1 to 1.  I hope to use scaled color
based on its value to produce an image of this matrix.

Suppose I hope to label those data in [-1,-0.5] with blue, label those
[-0.5,0.8] with light blue (tone is proportional to its value) and label
those [0.8,1] with white.

How can I use image() and rgb() to achieve this?  It would be great if I can
have a color scale legend, too.

TIA,
Chris

        [[alternative HTML version deleted]]

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to