😎 Give your xaringan slides some style
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

73 lines
3.1KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/ggplot2.R
  3. \name{theme_xaringan_inverse}
  4. \alias{theme_xaringan_inverse}
  5. \title{An Inverse Plot Theme for ggplot2 by xaringanthemer}
  6. \usage{
  7. theme_xaringan_inverse(text_color = NULL, background_color = NULL,
  8. accent_color = NULL, accent_secondary_color = NULL, ...)
  9. }
  10. \arguments{
  11. \item{text_color}{Color for text and foreground, inherits from \code{text_color}}
  12. \item{background_color}{Color for background, inherits from
  13. \code{background_color}}
  14. \item{accent_color}{Color for titles and accents, inherits from
  15. \code{header_color}}
  16. \item{accent_secondary_color}{Color for secondary accents, inherits from
  17. \code{text_bold_color}}
  18. \item{...}{Arguments passed on to \code{theme_xaringan_base}
  19. \describe{
  20. \item{text_color}{Color for text and foreground}
  21. \item{background_color}{Color for background}
  22. \item{accent_color}{Color for titles and accents, inherits from
  23. \code{header_color} or \code{text_color}. Used for the \code{title} base setting in
  24. \code{\link[ggplot2:theme]{ggplot2::theme()}}, and additionally for setting the \code{color} or \code{fill} of
  25. \link{ggplot2} geom defaults.}
  26. \item{accent_secondary_color}{Color for secondary accents, inherits from
  27. \code{text_bold_color} or \code{accent_color}. Used only when setting \link{ggplot2} geom
  28. defaults.}
  29. \item{set_ggplot_defaults}{Should defaults be set for \link{ggplot2} \emph{geoms}?
  30. Defaults to TRUE. To restore ggplot's defaults, or the previously set geom
  31. defaults, see \code{\link[=theme_xaringan_restore_defaults]{theme_xaringan_restore_defaults()}}.}
  32. \item{text_font}{Font to use for text elements, passed to
  33. \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is
  34. \code{TRUE}. Inherits from \code{text_font_family}.}
  35. \item{text_font_use_google}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?}
  36. \item{text_font_size}{Base text font size, inherits from \code{text_font_size}, or
  37. defaults to 11.}
  38. \item{title_font}{Font to use for title elements, passed to
  39. \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{title_font_use_google} is
  40. \code{TRUE}. Inherits from \code{title_font_family}.}
  41. \item{title_font_use_google}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?}
  42. \item{title_font_size}{Base text font size, inherits from \code{title_font_size},
  43. or defaults to 14.}
  44. }}
  45. }
  46. \description{
  47. A \link{ggplot2} xaringanthemer plot theme to seamlessly match the "inverse"
  48. \link{xaringan} slide colors and styles as styled by \link{xaringanthemer}.
  49. }
  50. \examples{
  51. if (requireNamespace("ggplot2", quietly = TRUE)) {
  52. # Set xaringanthemer theme but save to tempfile
  53. duo_accent(outfile = tempfile())
  54. library(ggplot2)
  55. ggplot(iris) +
  56. aes(Petal.Length, Petal.Width) +
  57. geom_point() +
  58. theme_xaringan()
  59. }
  60. }
  61. \seealso{
  62. Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_base}},
  63. \code{\link{theme_xaringan_set_defaults}},
  64. \code{\link{theme_xaringan}}
  65. }
  66. \concept{xaringanthemer ggplot2 themes}