Learn R Programming

cape (version 3.1.2)

exp_color_fun: 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)

Value

Numeric vector with x_min:x_max remapped onto an exponential curve.

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