vreScale2Colours: Scale a number from a range into a colour gradient.

View source: R/valueRangeExpression.R

vreScale2ColoursR Documentation

Scale a number from a range into a colour gradient.

Description

vreScale2Colours takes a value from a range and scales it proportionally into a colour from a colour gradient.

Usage

vreScale2Colours(clr1, clr2, vMin, vMax, value)

Arguments

clr1

The colour representing the lower value of the target range.

clr2

The colour representing the upper value of the target range.

vMin

The lower value of the source range.

vMax

The upper value of the source range.

value

The source value to rescale into the target range.

Value

The value scaled into the target colour gradient.


pivottabler documentation built on Oct. 1, 2023, 5:07 p.m.