Re: [R] question in value-based color in image()

2008-09-17 Thread Jim Lemon
M. wrote: Hello, I have a matrix A 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, e.g. rgb(1

Re: [R] question in value-based color in image()

2008-09-16 Thread Achim Zeileis
On Tue, 16 Sep 2008, M. wrote: Hello, I have a matrix A 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