tintin_pal | R Documentation |
A wrapper function around Tintin_clrs
to
turn it into a palette function compatible with
discrete_scale
.
tintin_pal(
alpha = 1,
begin = 0,
end = 1,
direction = 1,
option = "the_blue_lotus"
)
alpha |
The alpha transparency, a number in |
begin |
The (corrected) hue in |
end |
The (corrected) hue in |
direction |
Sets the order of colors in the scale. If 1, the default, colors are ordered from darkest to lightest. If -1, the order of colors is reversed. |
option |
A character string indicating the color map option to use. Options are available:
|
See Tintin_clrs
for more information on the color palettes.
A function that takes an integer argument and returns a character
vector of colors.
tintin_pal()
scales::show_col(tintin_pal()(5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.