colour.gradient: Creates a colour gradient

colour.gradientR Documentation

Creates a colour gradient

Description

Creates a sequential palette of colours.

Usage

colour.gradient(
	colour, 
	length
	);

Arguments

colour

A single colour to be used as the center value of the sequence

length

The number of colours to include in the palette

Author(s)

Ren Sun & Christine P'ng

Examples


display.colours(colour.gradient('dodgerblue2', 6));

display.colours(colour.gradient(default.colours(1), 3));


uclahs-cds/public-R-BoutrosLab-plotting-general documentation built on Oct. 10, 2024, 3:06 a.m.