Description Usage Arguments Details Value Note Examples
The function get_pal generates a palette of colors according to a provided theme.
The list of available themes is returned by list_pal (see also Details).
Palettes can be previewed using the function viz_pal.
1 2 3 4 5 |
theme |
Theme of the palette. A string corresponding to one of the 31 themes available in RStudio (see Details). If not specified, the function tries to retrieve the active theme using rstudioapi. |
n |
Number of colors to return. Currently limited to 5. |
pal |
A color palette as returned by |
print.ribbon |
Logical stating whether a ribbon with the name of the palette should be added to the plot (default |
print.hex |
Logical stating whether the hexadecimal code of each color should be added to the plot (default |
The available themes are:
Ambiance, Chaos, Chrome, Clouds, Clouds Midnight, Cobalt,
Crimson Editor, Dawn, Dracula, Dreamweaver, Eclipse, Idle Fingers,
Katzenmilch, Kr Theme, Material, Merbivore, Merbivore Soft,
Mono Industrial, Monokai, Pastel On Dark, Solarized Dark, Solarized Light,
TextMate, Tomorrow, Tomorrow Night, Tomorrow Night 80s, Tomorrow Night Blue,
Tomorrow Night Bright, Twilight, Vibrant Ink and Xcode.
A vector of hexadecimal colors with additional attributes.
The function viz_pal is directly inspired by the function print.palette
available in the package wesanderson by Karthik Ram.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.