Skip to content
Prev 8177 / 29559 Next

help with color scale

Thanks Arien & Jim for the useful tips.

I've used both methods suggested but am still not getting the desired 
results.

The problem with my actual data is that it contains several extreme 
values/outliers.The lab.breaks argument in image.plot() is able to 
assign a color to a specific range of value e.g. red = 0.9 to 1. But I 
also want to assign a color to any values which are > 1 (e.g. 1.10, 
2.15, 25) and < 1 but I'm not able to do that unless i set the color 
scale to include the whole range of values - which does not look pretty.

My last resort is to do a small manipulation by using the if/ifelse 
function to assign a number to values that beyond a certain threshold 
before I plot them.


Muhammad
Jim Lemon wrote: