ul_pal {ggthemeUL} | R Documentation |
University of Ljubljana color palettes
Description
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.
Usage
ul_pal(palette = "primary", neutralColor = "white", reverse = FALSE, ...)
Arguments
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 |
Value
A function that takes an integer argument n and returns a character vector of n colors.
Examples
pal <- ul_pal("redBlue", reverse = TRUE)
pal(7) # Generates a reversed divergent palette of 7 colors