This function returns a set of colours interpolating between the specified key colours, equally separated in the specified space.
Two or more colours, in any suitable form (see
An integer giving the number of shades required in the palette.
The colour space to traverse. Defaults to the current space of
The key colours may be specified explicitly, or else a built-in colour map
may be used. The maps available are currently those developed for Python's
matplotlib 2.0, namely
"viridis", and certain ColorBrewer palettes,
"RdBu" (red-grey-blue, a balanced diverging scale).
A character vector of class
"shade" containing the gradient
elements in the specified space, or a palette function.
Jon Clayden <firstname.lastname@example.org>
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.