[R] Log color scale

From: Kartik Pappu <kartik.pappu_at_gmail.com>
Date: Sun 30 Jul 2006 - 12:16:22 EST


Hi all,

In response to a previous post about plotting a numeric square matrix as a colored matrix, I was referred to both image and the color2D.matplot function in the plotrix package. Both have worked for me thanks!!

However I need to plot my data in a log transformed color scale. Is this possible? I will be happy to explain further, but basically I need to do this because there are large variations in the max and min values of my raw data and I am trying to highlight the differences in the values at the lower end of my raw data (while still displaying the values at the high end of the spectrum for comparison) so if figured the best way to represent this on a (RGB) color scale is to do it with a log transform. I do not want to use too many colors because that make the figure too busy.

Any suggestions on how to achieve this.

Kartik



R-help@stat.math.ethz.ch 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. Received on Sun Jul 30 12:22:08 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 30 Jul 2006 - 20:16:36 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.