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
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
Hi, Michael Did you try 'image.plot' in the 'fields' package? Christophe ----- Original Message ----- From: "Michael Jerosch-Herold" <jeroschh at ohsu.edu> To: <r-help at stat.math.ethz.ch> 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 > > ______________________________________________ > R-help at 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> >