Create gradient colors
Arguments
- x
Numeric value(s) to convert to colors (e.g., a vector of heights).
- vals
A numeric vector holding all possible values of
xto determine the color gradient range.- low
Color corresponding to the minimum value in
vals(default: "blue").- high
Color corresponding to the maximum value in
vals(default: "red").- alpha
Opacity level between 0 and 1 (default: 1).
