Return either a specific colour palette or all colour palettes offered by
AcademicThemes
.
Usage
academic_colour_palette(palette = NA, n = NA)
Arguments
- palette
A string containing the name of the palette to be returned. If
no name is given then all palettes are returned instead.
- n
A number indicating how many different colours should be included in
the palette. If not specified only the specific colours in the palette
will be returned.
Value
A single vector or a list of vectors containing HEX codes for academic
colour palettes.
Examples
# Get the colour palette used by the UKRI
academic_colour_palette("ukri_mrc")
#> [1] "#2D2E5F" "#3A88A9" "#00BAD2"