exp_color_fun {cape} | R Documentation |
Exponential color function
Description
This function maps colors onto an exponential function for use in colors_from_values.
Usage
exp_color_fun(x_min, x_max, steepness = 1, num_cols = 256)
Arguments
x_min |
The minimum value assigned to a color |
x_max |
The maximum value assigned to a color |
steepness |
The steepness of the exponential function |
num_cols |
The number of colors to generate in the ramp |
Value
Numeric vector with x_min:x_max remapped onto an exponential curve.
[Package cape version 3.1.2 Index]