si_rampr | R Documentation |
Generate a palette by linear interpolation. If a discrete palette is selected, colors are recycled to the length of the desired vector.
si_rampr(pal_name = "siei", n, alpha = 1, reverse = FALSE)
pal_name |
name of the palette |
n |
number of interpolation points |
alpha |
sets transparency of each color |
reverse |
if true, reverses order |
Chooses palette to use with ggplot2
## Not run:
#View different interpolations of palettes
si_rampr("denims") %>% scales::show_col()
si_rampr("denims", n = 10) %>% scales::show_col()
si_rampr("denims", n = 100)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.