exp_color_fun: Exponential color function

View source: R/exp_color_fun.R

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


cape documentation built on May 29, 2024, 5:11 a.m.