These functions are replacements for colorRamp and colorRampPalette from the
package grDevices, the only difference being that they also interpolate the
alpha channel (i.e. transparency).
a positive number. Higher values give more widely spaced
colors at the high end.
interpolate
use spline or linear interpolation
Value
Both functions return a function which takes an integer argument.
For details, see description of colorRampPalette
Details
These functions are replacements for colorRamp and colorRampPalette from the
package grDevices. There are two differences: (i) these functions also interpolate the
alpha channel (i.e. transparency) and (ii) there is no space
parameter (only rgb space is allowed).
For all the other details, see descriptions of the original package.