Re: [R] color quantization / binning a variable into levels

2007-02-21 Thread David Forrest
My apologies for the tremendously tardy reply, but I ran into a similar problem and discovered findInterval and colorRampPallet as an alternative and though it might be worthy of a RSiteSearch() result for someone. ?findInterval ?colorRampPalette jet.colors -

Re: [R] color quantization / binning a variable into levels

2006-02-22 Thread Adelchi Azzalini
On Tue, 21 Feb 2006 11:08:38 -0600 (CST), David Forrest wrote: perhaps binning of package sm is what you want best wishes, Adelchi Azzalini DF Hi all, DF DF I'd like to quantize a variable to map it into a limited set of DF integers for use with a colormap. image and filled.contour do DF

[R] color quantization / binning a variable into levels

2006-02-21 Thread David Forrest
Hi all, I'd like to quantize a variable to map it into a limited set of integers for use with a colormap. image and filled.contour do this mapping inside somewhere, but I'd like to choose the colors for plotting a set of polygons. Is there a pre-existing function that does something like this