😎 Give your xaringan slides some style
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.7KB

  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, direction = 1,
  26. inverse = FALSE)
  27. scale_xaringan_color_continuous(..., color = NULL, direction = 1,
  28. inverse = FALSE)
  29. scale_xaringan_colour_continuous(..., color = NULL, direction = 1,
  30. 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. }
  51. \description{
  52. Color and fill scales for discrete and continuous values, created using the
  53. primary accent color of the xaringanthemer styles.
  54. }