Learn R Programming

alcyon (version 0.7.0)

palettes: Colour Palettes from depthmapX

Description

Create n contiguous colours taken from depthmapX.

Usage

depthmap.classic.colour(n, rangeMin = 0, rangeMax = 1)

depthmap.axmanesque.colour(n, rangeMin = 0, rangeMax = 1)

depthmap.purpleorange.colour(n, rangeMin = 0, rangeMax = 1)

depthmap.bluered.colour(n, rangeMin = 0, rangeMax = 1)

depthmap.grayscale.colour(n, rangeMin = 0, rangeMax = 1)

depthmap.nicehsb.colour(n, rangeMin = 0, rangeMax = 1)

Value

Returns a vector of colours.

Arguments

n

Number of colours to generate

rangeMin

The min value of the range

rangeMax

The max value of the range

Examples

Run this code
depthmap.classic.colour(100, 0, 1)
depthmap.axmanesque.colour(100, 0, 1)
depthmap.purpleorange.colour(100, 0, 1)
depthmap.bluered.colour(100, 0, 1)
depthmap.grayscale.colour(100, 0, 1)
depthmap.nicehsb.colour(100, 0, 1)

Run the code above in your browser using DataLab