😎 Give your xaringan slides some style
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

75 lines
2.7KB

  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(
  8. text_color = NULL,
  9. background_color = NULL,
  10. accent_color = NULL,
  11. accent_secondary_color = NULL,
  12. ...
  13. )
  14. }
  15. \arguments{
  16. \item{text_color}{Color for text and foreground, inherits from \code{text_color}}
  17. \item{background_color}{Color for background, inherits from
  18. \code{background_color}}
  19. \item{accent_color}{Color for titles and accents, inherits from
  20. \code{header_color}}
  21. \item{accent_secondary_color}{Color for secondary accents, inherits from
  22. \code{text_bold_color}}
  23. \item{...}{
  24. Arguments passed on to \code{\link[=theme_xaringan_base]{theme_xaringan_base}}
  25. \describe{
  26. \item{\code{set_ggplot_defaults}}{Should defaults be set for \pkg{ggplot2} \emph{geoms}?
  27. Defaults to TRUE. To restore ggplot's defaults, or the previously set geom
  28. defaults, see \code{\link[=theme_xaringan_restore_defaults]{theme_xaringan_restore_defaults()}}.}
  29. \item{\code{text_font}}{Font to use for text elements, passed to
  30. \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is
  31. \code{TRUE}. Inherits from \code{text_font_family}.}
  32. \item{\code{text_font_use_google}}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?}
  33. \item{\code{text_font_size}}{Base text font size, inherits from \code{text_font_size}, or
  34. defaults to 11.}
  35. \item{\code{title_font}}{Font to use for title elements, passed to
  36. \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{title_font_use_google} is
  37. \code{TRUE}. Inherits from \code{title_font_family}.}
  38. \item{\code{title_font_use_google}}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?}
  39. \item{\code{title_font_size}}{Base text font size, inherits from \code{title_font_size},
  40. or defaults to 14.}
  41. }}
  42. }
  43. \value{
  44. A ggplot2 theme
  45. }
  46. \description{
  47. \strong{Lifecycle:} \href{https://www.tidyverse.org/lifecycle/#experimental}{Experimental}.
  48. A \pkg{ggplot2} xaringanthemer plot theme to seamlessly match the "inverse"
  49. \pkg{xaringan} slide colors and styles as styled by \link{xaringanthemer}.
  50. }
  51. \examples{
  52. if (requireNamespace("ggplot2", quietly = TRUE)) {
  53. # Set xaringanthemer theme but save to tempfile
  54. style_duo_accent(outfile = tempfile())
  55. library(ggplot2)
  56. ggplot(iris) +
  57. aes(Petal.Length, Petal.Width) +
  58. geom_point() +
  59. theme_xaringan()
  60. }
  61. }
  62. \seealso{
  63. Other xaringanthemer ggplot2 themes:
  64. \code{\link{theme_xaringan_base}()},
  65. \code{\link{theme_xaringan_set_defaults}()},
  66. \code{\link{theme_xaringan}()}
  67. }
  68. \concept{xaringanthemer ggplot2 themes}