View source: R/ggplot-scales.R
correlaid_pal | R Documentation |
Create a colour palette based on the CorrelAid design guide
correlaid_pal(direction = 1, option = "qualitative")
direction |
Sets the order of colours in the scale:
|
option |
A character string indicating the colour palette to use. Four options are available:
|
A function that takes an integer argument (the required number of colours) and returns a character vector of colours
scale_colour_correlaid_d()
etc.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.