This function returns a color value for each row of the 2-column dataset supplied, based on a 2D color palette interpolated from 4 corner colors.
Arguments
- data
Matrix or data frame with 2 numeric columns; they will map to x and y.
- colors
Vector of 4 corner colors to interpolate, clockwise from upper right.
- xtrans, ytrans
Transformation to apply to x and y variables before applying a linear color mapping: either "none" (default), "log", or "rank".