Clean ggplot theme with no panel background, black axis lines and grey fill colour for chart elements.

theme_clean(base_size = 12, base_family = "sans")

Arguments

base_size

Base font size.

base_family

Base font family.

See also

Author

Konrad Zdeb name.surname@me.com

Examples

library("ggplot2") p <- ggplot(mtcars, aes(x = wt, y = mpg, colour = factor(gear))) + geom_point() + facet_wrap(~am) + geom_smooth(method = "lm", se = FALSE) + theme_clean() p
#> `geom_smooth()` using formula 'y ~ x'