with_background: Change the background color of a ggplot.

Description Usage Arguments Examples

View source: R/plotting_funcs.R

Description

Change the background color of a ggplot.

Usage

1
with_background(fill = "black", color = "NA")

Arguments

fill

The color you want to change it to. Default is black.

color

The color you want to change the background to. Default is NA.

Examples

1
2
p <- ggplot(mtcars, aes(mpg, wt)) + geom_point()
p + with_background("pink")

lukereding/redinglib documentation built on May 25, 2019, 9:32 p.m.