correlaid_pal: CorrelAid palette

View source: R/ggplot-scales.R

correlaid_palR Documentation

CorrelAid palette

Description

Create a colour palette based on the CorrelAid design guide

Usage

correlaid_pal(direction = 1, option = "qualitative")

Arguments

direction

Sets the order of colours in the scale:

  • 1: default order

  • -1: reversed order

option

A character string indicating the colour palette to use. Four options are available:

  • "qualitative"

  • "gradient" and "gradient_x", based on the CorrelAid and CorrelAidX logo respectively

  • "grey"

Value

A function that takes an integer argument (the required number of colours) and returns a character vector of colours

See Also

scale_colour_correlaid_d() etc.

Examples

scales::show_col(correlaid_pal()(6))
scales::show_col(correlaid_pal(option = "gradient")(9))
scales::show_col(correlaid_pal(direction = -1, option = "gradient_x")(9))

CorrelAid/correltools documentation built on April 26, 2023, 8:19 a.m.