invert_geom_defaults: Invert geom defaults for fill and color/colour

Description Usage Arguments Examples

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

nsgrantham/ggdark documentation built on May 9, 2019, 5:56 a.m.