[R] image() with color key?

2004-09-03 Thread Michael Jerosch-Herold
Is there an easy way to plot a color key next to a color image (with
image() in graphics package)? The color key should also include a
numerical scale, so that the colors can be cross-referenced with image
intensity values. I see that levelplot has a facility for color keys,
but with image it seems less straightforward, i.e. generating a color
key is not an option in image().

Thank you!

Michael Jerosch-Herold

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] image() with color key?

2004-09-03 Thread Deepayan Sarkar
On Friday 03 September 2004 14:42, Michael Jerosch-Herold wrote:
 Is there an easy way to plot a color key next to a color image (with
 image() in graphics package)? The color key should also include a
 numerical scale, so that the colors can be cross-referenced with image
 intensity values. I see that levelplot has a facility for color keys,
 but with image it seems less straightforward, i.e. generating a color
 key is not an option in image().

Does filled.contour() give you what you want?

Deepayan

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


RE: [R] image() with color key?

2004-09-03 Thread Berton Gunter
In some applications, e.g., visualizing the values of the wells in a 96 well
(8 x 12) assay plate, the matrix of results is truly discrete and you want
to visualize it that way. image() does this, but not filled.contour() AFAIK.
If that's correct, the only way I know how to do it is to overlay two plots
(par(new=FALSE)),one for the data and the other for the legend. This is
certainly not trivial, but it's not impossibly hard, either.

I hope I'm wrong on this, though, as I'd welcome an easier way, too.

-- Bert Gunter
Genentech Non-Clinical Statistics
South San Francisco, CA
 
The business of the statistician is to catalyze the scientific learning
process.  - George E. P. Box

 Does filled.contour() give you what you want?
 
 Deepayan
 
 __
 [EMAIL PROTECTED] mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! 
 http://www.R-project.org/posting-guide.html
 
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] image() with color key?

2004-09-03 Thread Christophe Declercq
Hi, Michael

Did you try 'image.plot' in the 'fields' package?

Christophe

- Original Message -
From: Michael Jerosch-Herold [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 03, 2004 9:42 PM
Subject: [R] image() with color key?


 Is there an easy way to plot a color key next to a color image (with
 image() in graphics package)? The color key should also include a
 numerical scale, so that the colors can be cross-referenced with image
 intensity values. I see that levelplot has a facility for color keys,
 but with image it seems less straightforward, i.e. generating a color
 key is not an option in image().

 Thank you!

 Michael Jerosch-Herold

 __
 [EMAIL PROTECTED] mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html



__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html