Learn R Programming

alcyon (version 0.7.0)

makeColour: Single Colour from depthmapX's Palettes

Description

Create a single colour from depthmapX's palettes.

Usage

makeDepthmapClassicColour(value, rangeMin = 0, rangeMax = 1)

makeAxmanesqueColour(value, rangeMin = 0, rangeMax = 1)

makePurpleOrangeColour(value, rangeMin = 0, rangeMax = 1)

makeBlueRedColour(value, rangeMin = 0, rangeMax = 1)

makeGreyScaleColour(value, rangeMin = 0, rangeMax = 1)

makeNiceHSBColour(value, rangeMin = 0, rangeMax = 1)

Value

Returns a single colour.

Arguments

value

Value within the min/max range to take

rangeMin

The min value of the range

rangeMax

The max value of the range

Examples

Run this code
makeDepthmapClassicColour(0.2, 0, 1)
makeAxmanesqueColour(0.2, 0, 1)
makePurpleOrangeColour(0.2, 0, 1)
makeBlueRedColour(0.2, 0, 1)
makeGreyScaleColour(0.2, 0, 1)
makeNiceHSBColour(0.2, 0, 1)

Run the code above in your browser using DataLab