Description Usage Arguments Value Examples
Use covfefe_color_palette
to construct palettes of desired length.
Covfefe coachella palette generator
1 | covfefe_palette(name, n, type = c("discrete", "continuous"))
|
n |
Number of colours desired. Unfortunately most palettes now only have 4 or 5 colours. But hopefully we'll add more palettes soon. If omitted, uses all colours. |
type |
Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours. |
number |
ID of desired palette (1 to 3) |
A vector of colours.
1 2 3 4 5 6 7 | covfefe_color_palette(2, 8)
# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
pal <- covfefe_palette(1, number = 2, type = "continuous")
image(volcano, col = pal)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.