😎 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.

61 linhas
2.1KB

  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(
  9. text_color = NULL,
  10. background_color = NULL,
  11. accent_color = text_color,
  12. accent_secondary_color = accent_color,
  13. text_font = NULL
  14. )
  15. theme_xaringan_restore_defaults()
  16. }
  17. \arguments{
  18. \item{text_color}{Color for text and foreground, inherits from \code{text_color}}
  19. \item{background_color}{Color for background, inherits from
  20. \code{background_color}}
  21. \item{accent_color}{Color for titles and accents, inherits from
  22. \code{header_color}}
  23. \item{accent_secondary_color}{Color for secondary accents, inherits from
  24. \code{text_bold_color}}
  25. \item{text_font}{Font to use for text elements, passed to
  26. \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is
  27. \code{TRUE}. Inherits from \code{text_font_family}. Must be a length-one character.}
  28. }
  29. \value{
  30. Invisibly returns a list of the current ggplot2 geom defaults
  31. Invisibly returns a list of the current ggplot2 geom defaults
  32. }
  33. \description{
  34. \ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#maturing}{\figure{lifecycle-maturing.svg}{options: alt='[Maturing]'}}}{\strong{[Maturing]}}
  35. Set \pkg{ggplot2} \emph{geom} defaults to match \code{\link[=theme_xaringan]{theme_xaringan()}} with
  36. \code{theme_xaringan_set_defaults()} and restore the standard or previously-set
  37. defaults with \code{theme_xaringan_restore_defaults()}. By default,
  38. \code{theme_xaringan_set_defaults()} is run with \code{\link[=theme_xaringan]{theme_xaringan()}} or
  39. \code{\link[=theme_xaringan_inverse]{theme_xaringan_inverse()}}.
  40. }
  41. \section{Functions}{
  42. \itemize{
  43. \item \code{theme_xaringan_restore_defaults}: Restore previous or standard
  44. \pkg{ggplot2} \emph{geom} defaults.
  45. }}
  46. \seealso{
  47. Other xaringanthemer ggplot2 themes:
  48. \code{\link{theme_xaringan_base}()},
  49. \code{\link{theme_xaringan_inverse}()},
  50. \code{\link{theme_xaringan}()}
  51. }
  52. \concept{xaringanthemer ggplot2 themes}