Skip to contents

Simple, minimal theme, with easy customization

Usage

theme_mini(bg = "white", text = "black", minor = FALSE, conditional = TRUE)

Arguments

bg

Background color

text

Not used

minor

Minor gridlines

conditional

Conditional gridlines

Value

ggplot object

Examples

 library(dplyr)
 library(ggplot2)
 mtcars |>
   mutate(cyl = factor(cyl)) |>
   ggplot(aes(mpg, cyl, fill = cyl)) +
   geom_boxplot(key_glyph = "dubois") +
   theme_mini() +
   scale_fill_dubois()


 mtcars |>
   mutate(cyl = factor(cyl)) |>
   ggplot(aes(cyl, mpg, fill = cyl)) +
   geom_point(shape = 21, size = 4) +
   theme_mini(bg = "#ddddff")