more_colours: Expand series of colours by interpolation

Description Usage Arguments

Description

Expand a series of colours by interpolation to produce any number of colours from a given series. The pattern of interpolation is designed so that (n+1)th value contains the nth value plus one more colour, rather than being a completely different series. For example, running more_colours(5) and more_colours(4), the first 4 colours will be shared between the two series.

Usage

1
more_colours(n = 5, raw_cols = col_hot_cold())

Arguments

n

how many colours to return

raw_cols

vector of colours to interpolate


bobverity/MALECOT documentation built on May 13, 2019, 4:01 a.m.