View source: R/exp_color_fun.R
exp_color_fun | R Documentation |
This function maps colors onto an exponential function for use in colors_from_values.
exp_color_fun(x_min, x_max, steepness = 1, num_cols = 256)
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 |
Numeric vector with x_min:x_max remapped onto an exponential curve.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.