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()
ordark_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 toNULL
, which lets thegg_*
function guess it based on the data.- theme_axis_line_rm
TRUE
orFALSE
of whether thegg_*
function should remove the relevant axis line per thetheme_orientation
of the plot.- theme_axis_ticks_rm
TRUE
orFALSE
of whether thegg_*
function should remove the relevant axis ticks per thetheme_orientation
of the plot.- theme_panel_grid_rm
TRUE
orFALSE
of whether thegg_*
function should remove the relevant panel grid per thetheme_orientation
of the plot.