Description Usage Arguments Examples
View source: R/plotting_funcs.R
Change the background color of a ggplot.
1 | with_background(fill = "black", color = "NA")
|
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. |
1 2 | p <- ggplot(mtcars, aes(mpg, wt)) + geom_point()
p + with_background("pink")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.