Skip to contents

creel_palette() returns a small set of package-standard colours derived from the tidycreel site palette. Use these colours directly in custom plots or pair them with theme_creel() for a consistent visual style.

Usage

creel_palette(n = NULL)

Arguments

n

Optional integer number of colours to return. When NULL (default), returns the full named palette.

Value

When n is NULL, a named character vector of hex colours. Otherwise, a character vector of length n recycling through the base palette as needed.

Examples

creel_palette()
#>   primary      link    accent      warm   neutral     light 
#> "#0b3b5e" "#f47d65" "#30a7d5" "#f47d65" "#697f94" "#edf1f4" 
creel_palette(3)
#>   primary      link    accent 
#> "#0b3b5e" "#f47d65" "#30a7d5"