Re: [R] setting color ranges

2008-02-15 Thread Jim Lemon
samsr wrote: > Hi, > > I need to plot a matrix using image() such that negative values are easily > distinguishable from posittive values, while also maintaining a gradation in > color with magnitude. How can I set ranges for colors in order to achieve > this. Thanks. > Hi Sam, This will give y

Re: [R] setting color ranges

2008-02-14 Thread Achim Zeileis
On Thu, 14 Feb 2008, samsr wrote: > > Hi, > > I need to plot a matrix using image() such that negative values are easily > distinguishable from posittive values, while also maintaining a gradation in > color with magnitude. How can I set ranges for colors in order to achieve > this. Thanks. Look

Re: [R] setting color ranges

2008-02-14 Thread hadley wickham
Hi Sam, You might find it easier to use ggplot2 to do this. See http://had.co.nz/ggplot2/geom_tile.html for some examples. Hadley On Thu, Feb 14, 2008 at 2:59 PM, samsr <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to plot a matrix using image() such that negative values are easily > distin

[R] setting color ranges

2008-02-14 Thread samsr
Hi, I need to plot a matrix using image() such that negative values are easily distinguishable from posittive values, while also maintaining a gradation in color with magnitude. How can I set ranges for colors in order to achieve this. Thanks. Sam -- View this message in context: http://www.n