more_colours | R Documentation |
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.
more_colours(n = 5, raw_cols = RColorBrewer::brewer.pal(10, "Paired"))
n |
how many colours to return |
raw_cols |
vector of colours to interpolate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.