theme_clean: Clean ggplot theme

Description Usage Arguments Author(s) See Also Examples

View source: R/clean.R

Description

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

Usage

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

Arguments

base_size

Base font size.

base_family

Base font family.

Author(s)

Konrad Zdeb name.surname@me.com

See Also

Other themes: theme_base(), theme_foundation(), theme_igray(), theme_par(), theme_solid()

Examples

1
2
3
4
5
6
7
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

Example output

`geom_smooth()` using formula 'y ~ x'

ggthemes documentation built on Jan. 20, 2021, 5:05 p.m.