invert_geom_defaults: Invert geom defaults for fill and color/colour

Description Usage Arguments Examples

View source: R/dark_mode.R

Description

Invert geom defaults for fill and color/colour

Usage

1

Arguments

geoms

List of geoms as ggproto objects

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(ggplot2)

p <- ggplot(iris, aes(Sepal.Width, Sepal.Length)) +
  geom_point() +
  facet_wrap(~ Species)

p + dark_theme_gray()  # geom defaults changed

p + theme_gray()  # oh no! geoms are not visible on light background

invert_geom_defaults()  # geom defaults changed back

p + theme_gray() # back to normal

Example output

Inverted geom defaults of fill and color/colour.
To change them back, use invert_geom_defaults().

ggdark documentation built on May 2, 2019, 3:43 p.m.