Skip to contents

A restrained, publication-ready ggplot2 theme with viridis defaults.

Usage

sm_theme(base_size = 11, base_family = "", dark = FALSE, ...)

Arguments

base_size

Base font size in points.

base_family

Base font family.

dark

Logical; use dark mode?

...

Additional arguments passed to ggplot2::theme().

Value

A ggplot2::theme object.

Examples

library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) + geom_point() + sm_theme()