ul_pal | R Documentation |
This function provides color palettes adhering to the official visual identity of the University of Ljubljana. It includes the primary and secondary palettes, individual color gradations, and multiple divergent color palettes.
ul_pal(palette = "primary", neutralColor = "white", reverse = FALSE, ...)
palette |
Character. The name of the palette to use.
|
neutralColor |
Define the color used as neutral (default |
reverse |
Logical. If |
... |
Additional arguments to be passed to the |
A function that takes an integer argument n and returns a character vector of n colors.
## Not run:
pal <- ul_pal("redBlue", reverse = TRUE)
pal(7) # Generates a reversed divergent palette of 7 colors
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.