Description Usage Arguments Value Examples
Randomly shuffle part or all of a color palette
1 | shuffle_pal(palette = .data, freeze, hist = TRUE)
|
palette |
character vector of hexadecimal color values, with each beginning with "#". Alternatively, a
double vector of length 1 specifying the numeric identifier of |
freeze |
double vector specifying the positions of colors to freeze (i.e. not shuffle). Must be length 1:n, where n is the length of the palette specified. |
hist |
boolean, default TRUE; indicates whether to write results of shuffled palette to history
using |
A vector of hexadecimal color values.
1 2 3 | # shuffle a known color palette, keeping colors 2:3
library(magrittr)
palette_coolors(palette_num = 123) %>% shuffle_pal(freeze = 2:3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.