more_colours: Expand series of colours by interpolation

Description Usage Arguments

View source: R/plot.R

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 = brewer.pal(12, "Paired"))

Arguments

n

how many colours to return.

raw_cols

vector of colours to interpolate.


Michael-Stevens-27/silverblaze documentation built on May 28, 2021, 5:47 p.m.