[R] setting color ranges

hadley wickham h.wickham at gmail.com
Thu Feb 14 23:54:48 CET 2008


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 <sameet.sreenivasan at gmail.com> 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.
>
>  Sam
>  --
>  View this message in context: http://www.nabble.com/setting-color-ranges-tp15489086p15489086.html
>  Sent from the R help mailing list archive at Nabble.com.
>
>  ______________________________________________
>  R-help at r-project.org mailing list
>  https://stat.ethz.ch/mailman/listinfo/r-help
>  PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>  and provide commented, minimal, self-contained, reproducible code.
>



-- 
http://had.co.nz/



More information about the R-help mailing list