Skip to contents

Fill palette of Dubois colors

Usage

scale_fill_dubois(palette = "main", direction = 1, order = NULL, ...)

Arguments

palette

Choice of palette name or number

direction

Direction of color choices

order

Order of color choices

...

Additional parameters passed internally

Value

ggplot object with colors applied

Examples

 library(dplyr)
#> 
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#> 
#>     filter, lag
#> The following objects are masked from ‘package:base’:
#> 
#>     intersect, setdiff, setequal, union
 library(ggplot2)
 mtcars |>
   mutate(cyl = factor(cyl)) |>
   ggplot(aes(mpg, cyl, fill = cyl)) +
   geom_boxplot(key_glyph = "dubois") +
   theme_mini(conditional = TRUE) +
   scale_fill_dubois()