Description Usage Arguments Details Value Author(s) Examples
Takes a sequence of hex code colour codes and smooths the colour palette to a specified extended length.
1 | smooth_pal(pal, n = 10)
|
pal |
A character vector of hex code colours. |
n |
The number of colours to interpolate between colours. A larger value creates a smoother palette. |
You might want to consider using colour palettes from the
package RColorBrewer
.
A character vector containing the smoothed colour palette.
Sean Anderson
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.