Skip to content

assigning colors with color2D.matplot

1 message · Sumukh Sathnur

#
Jim,

Thanks for the response! It turns out that using color2D.matplot 
actually eliminates my need to rotate the matrix at all. However, I'm 
not quite sure I understand the arguments for assigning colors to the 
cells. Using image and image.plot, I used col= and breaks= to define a 
certain color to a specific range of values (in my case, shades of 
gray). However, I just can't figure out how to do this in 
color2D.matplot. I mostly just don't really understand cs1 cs2 and cs3, 
and I'm more or less lost on how to reproduce the same sort of plot. 
I've only been using R for about a month, so I hope that explains my 
lack of knowledge...if you could help me out it would be much appreciated.

Thanks,
Sumukh
On 8/1/2011 2:30 AM, Jim Lemon wrote:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Matrix.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110804/8be0a8fd/attachment.txt>