Skip to contents

Set a theme for the theme argument in gg_* functions.

Usage

weave_theme(
  theme = light_mode_r(),
  ...,
  theme_orientation = NULL,
  theme_axis_line_rm = TRUE,
  theme_axis_ticks_rm = TRUE,
  theme_panel_grid_rm = TRUE
)

Arguments

theme

A ggplot2 theme (e.g. light_mode_t() or dark_mode_r()).

...

Dots to support trailing commas etc.

theme_orientation

The orientation of plot, which affects the theme components that can be removed by the gg_* function. Either "x" or "y". Defaults to NULL, which lets the gg_* function guess it based on the data.

theme_axis_line_rm

TRUE or FALSE of whether the gg_* function should remove the relevant axis line per the theme_orientation of the plot.

theme_axis_ticks_rm

TRUE or FALSE of whether the gg_* function should remove the relevant axis ticks per the theme_orientation of the plot.

theme_panel_grid_rm

TRUE or FALSE of whether the gg_* function should remove the relevant panel grid per the theme_orientation of the plot.