Skip to content
Prev 8176 / 29559 Next

help with color scale

On 05/03/2010 04:10 AM, Muhammad Rahiz wrote:
Hi Muhammad,
The color.scale function in the plotrix package will translate numeric 
values into colors. for example:

imagecolors<-color.scale(x,c(0,1),0,c(1,0))

gives a very simple color scale going from blue at the minimum value to 
red at the maximum. Look at the examples in the color2d.matplot help 
page to see how you can do fancier color mappings.

Jim