Description Usage Arguments Value
Load color ramps and palettes from presets. Identical to pkrf::pal() besides some argument defaults.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
name |
Name of the color ramp (string). |
number |
Number of output colors desired (integer). Defaults to number of colors in the pallete for qualitative type and to 100 for sequential and diverging types. |
reversed |
Reverse the output color order (logical). |
random |
Randomize output color order (logical). |
center |
Relative position of the center of the color ramp (numeric, 0-1). Useful to change centerpoint of diverging scales. |
show |
Show a plot of all available color ramps (logical). |
collapse |
Print a single comma-separated and quoted string of colors to stdout |
Vector with hex colors strings.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.