Last chance! 50% off unlimited learning
Sale ends in
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")
Base font size.
Base font family.
Konrad Zdeb name.surname@me.com
Other themes:
theme_base()
,
theme_foundation()
,
theme_igray()
,
theme_par()
,
theme_solid()
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
Run the code above in your browser using DataLab