exp_color_fun: Exponential color function

Description Usage Arguments Value

View source: R/exp_color_fun.R

Description

This function maps colors onto an exponential function for use in colors_from_values.

Usage

1
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.


cape documentation built on Feb. 10, 2021, 5:06 p.m.