Skip to content

question in value-based color in image()

3 messages · M., Achim Zeileis, Jim Lemon

#
On Tue, 16 Sep 2008, M. wrote:

            
RGB is not the most convenient color space for doing such computations, 
HCL is color model that is quite useful and the package "vcd" provides 
some functions like diverge_hcl() for computing palettes based on HCL 
colors. See
   vignette("hcl-colors", package = "vcd")
   ?diverge_hcl

hth,
Z
#
M. wrote:
Hi Chris,
Have a look at color2D.matplot in the plotrix package (particularly the 
last example for more than one color range). I think you will have to 
precalculate your colors and pass that as the "cellcolors" argument.

Jim