| #' theme_xaringan() | #' theme_xaringan() | ||||
| #' } | #' } | ||||
| #' | #' | ||||
| #' @return A ggplot2 theme | |||||
| #' @family xaringanthemer ggplot2 themes | #' @family xaringanthemer ggplot2 themes | ||||
| #' @export | #' @export | ||||
| theme_xaringan <- function( | theme_xaringan <- function( | ||||
| #' theme_xaringan() | #' theme_xaringan() | ||||
| #' } | #' } | ||||
| #' | #' | ||||
| #' @return A ggplot2 theme | |||||
| #' @family xaringanthemer ggplot2 themes | #' @family xaringanthemer ggplot2 themes | ||||
| #' @export | #' @export | ||||
| theme_xaringan_inverse <- function( | theme_xaringan_inverse <- function( | ||||
| #' caption = "{xaringanthemer}") | #' caption = "{xaringanthemer}") | ||||
| #' } | #' } | ||||
| #' | #' | ||||
| #' @return A ggplot2 theme | |||||
| #' @family xaringanthemer ggplot2 themes | #' @family xaringanthemer ggplot2 themes | ||||
| #' @export | #' @export | ||||
| theme_xaringan_base <- function( | theme_xaringan_base <- function( | ||||
| #' | #' | ||||
| #' @family xaringanthemer ggplot2 themes | #' @family xaringanthemer ggplot2 themes | ||||
| #' @inheritParams theme_xaringan | #' @inheritParams theme_xaringan | ||||
| #' @return Invisibly returns a list of the current ggplot2 geom defaults | |||||
| #' @export | #' @export | ||||
| theme_xaringan_set_defaults <- function( | theme_xaringan_set_defaults <- function( | ||||
| text_color = NULL, | text_color = NULL, | ||||
| #' @describeIn theme_xaringan_set_defaults Restore previous or standard [ggplot2] _geom_ defaults. | #' @describeIn theme_xaringan_set_defaults Restore previous or standard [ggplot2] _geom_ defaults. | ||||
| #' @inheritParams theme_xaringan | #' @inheritParams theme_xaringan | ||||
| #' @return Invisibly returns a list of the current ggplot2 geom defaults | |||||
| #' @export | #' @export | ||||
| xaringan_theme_restore_defaults <- function() { | xaringan_theme_restore_defaults <- function() { | ||||
| requires_package("ggplot2") | requires_package("ggplot2") |
| or defaults to 14.} | or defaults to 14.} | ||||
| }} | }} | ||||
| } | } | ||||
| \value{ | |||||
| A ggplot2 theme | |||||
| } | |||||
| \description{ | \description{ | ||||
| Creates \link{ggplot2} themes to match the xaringanthemer theme used in the | Creates \link{ggplot2} themes to match the xaringanthemer theme used in the | ||||
| \link{xaringan} slides that seamlessly matches the "normal" slide colors and | \link{xaringan} slides that seamlessly matches the "normal" slide colors and |
| \item{title_font_size}{Base text font size, inherits from \code{title_font_size}, | \item{title_font_size}{Base text font size, inherits from \code{title_font_size}, | ||||
| or defaults to 14.} | or defaults to 14.} | ||||
| } | } | ||||
| \value{ | |||||
| A ggplot2 theme | |||||
| } | |||||
| \description{ | \description{ | ||||
| Provides a base plot theme for \link{ggplot2} to match the \link{xaringan} slide theme | Provides a base plot theme for \link{ggplot2} to match the \link{xaringan} slide theme | ||||
| created by \link{xaringanthemer}. The theme is designed to create a general plot | created by \link{xaringanthemer}. The theme is designed to create a general plot |
| or defaults to 14.} | or defaults to 14.} | ||||
| }} | }} | ||||
| } | } | ||||
| \value{ | |||||
| A ggplot2 theme | |||||
| } | |||||
| \description{ | \description{ | ||||
| A \link{ggplot2} xaringanthemer plot theme to seamlessly match the "inverse" | A \link{ggplot2} xaringanthemer plot theme to seamlessly match the "inverse" | ||||
| \link{xaringan} slide colors and styles as styled by \link{xaringanthemer}. | \link{xaringan} slide colors and styles as styled by \link{xaringanthemer}. |
| \item{accent_secondary_color}{Color for secondary accents, inherits from | \item{accent_secondary_color}{Color for secondary accents, inherits from | ||||
| \code{text_bold_color}} | \code{text_bold_color}} | ||||
| } | } | ||||
| \value{ | |||||
| Invisibly returns a list of the current ggplot2 geom defaults | |||||
| Invisibly returns a list of the current ggplot2 geom defaults | |||||
| } | |||||
| \description{ | \description{ | ||||
| Set \link{ggplot2} \emph{geom} defaults to match \code{\link[=theme_xaringan]{theme_xaringan()}} with | Set \link{ggplot2} \emph{geom} defaults to match \code{\link[=theme_xaringan]{theme_xaringan()}} with | ||||
| \code{theme_xaringan_set_defaults()} and restore the standard or previously-set | \code{theme_xaringan_set_defaults()} and restore the standard or previously-set |