R Graphics: Heat Colors

Heat colors in R utilize basic color ramp  functions.  Simple example scripts with basic control options follow.

Heat Colors

The heat.colors() function creates a ramp of contiguous colors clustered around the color orange in the red spectrum of the RGB scale.  The function has the form heat.colors(num_colors, alpha=value).

Color Ramp Example

Plot117

Alpha Transparency

Heat color transparency is controlled with the optional alpha argument.  The default value is alpha=1.

Plot118

Back | Next

Leave a Reply