weave_theme: Set a theme

View source: R/weave.R

weave_themeR Documentation

Set a theme

Description

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()).

...

Provided to require argument naming, 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.


davidhodge931/ggblanket documentation built on Feb. 25, 2025, 9:17 p.m.