academic_colour_palette {AcademicThemes}R Documentation

Get An Academic Colour Palette

Description

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")

[Package AcademicThemes version 0.0.2 Index]