😎 Give your xaringan slides some style
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

56 linhas
2.0KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/ggplot2.R
  3. \name{theme_xaringan_set_defaults}
  4. \alias{theme_xaringan_set_defaults}
  5. \alias{theme_xaringan_restore_defaults}
  6. \title{Set and Restore ggplot2 geom Defaults}
  7. \usage{
  8. theme_xaringan_set_defaults(text_color = NULL, background_color = NULL,
  9. accent_color = text_color, accent_secondary_color = accent_color,
  10. text_font = NULL)
  11. theme_xaringan_restore_defaults()
  12. }
  13. \arguments{
  14. \item{text_color}{Color for text and foreground, inherits from \code{text_color}}
  15. \item{background_color}{Color for background, inherits from
  16. \code{background_color}}
  17. \item{accent_color}{Color for titles and accents, inherits from
  18. \code{header_color}}
  19. \item{accent_secondary_color}{Color for secondary accents, inherits from
  20. \code{text_bold_color}}
  21. \item{text_font}{Font to use for text elements, passed to
  22. \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is
  23. \code{TRUE}. Inherits from \code{text_font_family}.}
  24. }
  25. \value{
  26. Invisibly returns a list of the current ggplot2 geom defaults
  27. Invisibly returns a list of the current ggplot2 geom defaults
  28. }
  29. \description{
  30. \strong{Lifecycle:} \href{https://www.tidyverse.org/lifecycle/#experimental}{Experimental}.
  31. Set \pkg{ggplot2} \emph{geom} defaults to match \code{\link[=theme_xaringan]{theme_xaringan()}} with
  32. \code{theme_xaringan_set_defaults()} and restore the standard or previously-set
  33. defaults with \code{theme_xaringan_restore_defaults()}. By default,
  34. \code{theme_xaringan_set_defaults()} is run with \code{\link[=theme_xaringan]{theme_xaringan()}} or
  35. \code{\link[=theme_xaringan_inverse]{theme_xaringan_inverse()}}.
  36. }
  37. \section{Functions}{
  38. \itemize{
  39. \item \code{theme_xaringan_restore_defaults}: Restore previous or standard
  40. \pkg{ggplot2} \emph{geom} defaults.
  41. }}
  42. \seealso{
  43. Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_base}},
  44. \code{\link{theme_xaringan_inverse}},
  45. \code{\link{theme_xaringan}}
  46. }
  47. \concept{xaringanthemer ggplot2 themes}