Skip to contents

ggplot2 theme matching vistool defaults

Usage

theme_vistool(theme = NULL, ...)

Arguments

theme

Optional vistool theme object. Falls back to the active vistool_theme() (global default) when NULL.

...

Additional arguments passed to ggplot2::theme() to override defaults for a specific plot.

Value

A ggplot2::theme object that can be composed via + or passed to ggplot2::theme_set().

Examples

ggplot2::theme_set(theme_vistool())

ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg)) +
  ggplot2::geom_point() +
  theme_vistool(legend.position = "bottom")