vreScale2Colours {basictabler}R 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.


[Package basictabler version 1.0.2 Index]