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

71 lines
2.9KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/ggplot2.R
  3. \name{scale_xaringan}
  4. \alias{scale_xaringan}
  5. \alias{scale_xaringan_discrete}
  6. \alias{scale_xaringan_fill_discrete}
  7. \alias{scale_xaringan_color_discrete}
  8. \alias{scale_xaringan_colour_discrete}
  9. \alias{scale_xaringan_continuous}
  10. \alias{scale_xaringan_fill_continuous}
  11. \alias{scale_xaringan_color_continuous}
  12. \alias{scale_xaringan_colour_continuous}
  13. \title{Xaringan Themer ggplot2 Scales}
  14. \usage{
  15. scale_xaringan_discrete(aes_type = c("color", "colour", "fill"), ...,
  16. color = NULL, direction = 1, inverse = FALSE)
  17. scale_xaringan_fill_discrete(..., color = NULL, direction = 1,
  18. inverse = FALSE)
  19. scale_xaringan_color_discrete(..., color = NULL, direction = 1,
  20. inverse = FALSE)
  21. scale_xaringan_colour_discrete(..., color = NULL, direction = 1,
  22. inverse = FALSE)
  23. scale_xaringan_continuous(aes_type = c("color", "colour", "fill"), ...,
  24. color = NULL, begin = 0, end = 1, inverse = FALSE)
  25. scale_xaringan_fill_continuous(..., color = NULL, begin = 0, end = 1,
  26. inverse = FALSE)
  27. scale_xaringan_color_continuous(..., color = NULL, begin = 0,
  28. end = 1, inverse = FALSE)
  29. scale_xaringan_colour_continuous(..., color = NULL, begin = 0,
  30. end = 1, inverse = FALSE)
  31. }
  32. \arguments{
  33. \item{aes_type}{The type of aesthetic to which the scale is being applied.
  34. One of "color", "colour", or "fill".}
  35. \item{...}{Arguments passed on to the appropriate scale function, one of
  36. \link[colorspace:scale_color_discrete_sequential]{colorspace::scale_color_discrete_sequential},
  37. \link[colorspace:scale_color_continuous_sequential]{colorspace::scale_color_continuous_sequential},
  38. \link[colorspace:scale_fill_discrete_sequential]{colorspace::scale_fill_discrete_sequential}, or
  39. \link[colorspace:scale_fill_continuous_sequential]{colorspace::scale_fill_continuous_sequential}.}
  40. \item{color}{A color value, in hex, to override the default color. Otherwise,
  41. the primary color of the resulting scale is chosen from the xaringanthemer
  42. slide styles.}
  43. \item{direction}{Direction of the discrete scale. Use values less than 0 to
  44. reverse the direction, e.g. \code{direction = -1}.}
  45. \item{inverse}{If \code{color} is not supplied and \code{inverse = TRUE}, a primary
  46. color is chosen to work well with the inverse slide styles, namely the
  47. value of \code{inverse_header_color}}
  48. \item{begin}{Number in the range of \code{[0, 1]} indicating to which point in the color scale the smallest data value should be mapped.}
  49. \item{end}{Number in the range of \code{[0, 1]} indicating to which point in the color scale the largest data value should be mapped.}
  50. \item{...}{Additional arguments passed to \code{\link[ggplot2:continuous_scale]{ggplot2::continuous_scale()}} or
  51. \code{\link[=ggplot2:discrete_scale]{ggplot2:discrete_scale()}}.}
  52. }
  53. \description{
  54. Color and fill single-color scales for discrete and continuous values,
  55. created using the primary accent color of the xaringanthemer styles.
  56. }