paletteer_d | R Documentation |
Available package/palette combinations are available in the data.frame
palettes_d_names
.
paletteer_d(palette, n, direction = 1, type = c("discrete", "continuous"))
palette |
Name of palette as a string. Must be on the form packagename::palettename. |
n |
Number of colors desired. If omitted, returns complete palette. |
direction |
Either |
type |
Either "discrete" or "continuous". Colors are interpolated if "continuous" is picked. Defaults to "discrete". |
A vector of colors.
paletteer_d("nord::frost")
paletteer_d("wesanderson::Royal1", 3)
paletteer_d("Redmonder::dPBIPuOr", 14, type = "continuous")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.