[R] image() with color key?

Deepayan Sarkar deepayan at stat.wisc.edu
Fri Sep 3 21:52:26 CEST 2004


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




More information about the R-help mailing list