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

49 lines
1.8KB

  1. #' @importFrom grDevices col2rgb rgb rgb2hsv hsv
  2. #' @keywords internal
  3. "_PACKAGE"
  4. xaringanthemer_env <- new.env(parent = emptyenv())
  5. # I looked up these ggplot geom aesthetic defaults manually via e.g.
  6. # ggplot2::geom_line()$geom$default_aes
  7. xaringanthemer_env$std_ggplot_defaults <- list(
  8. "line" = list(color = "black"),
  9. "vline" = list(color = "black"),
  10. "hline" = list(color = "black"),
  11. "abline" = list(color = "black"),
  12. "segment" = list(color = "black"),
  13. "bar" = list(fill = "grey35"),
  14. "col" = list(fill = "grey35"),
  15. "boxplot" = list(color = "grey20", fill = "white"),
  16. "contour" = list(color = "#3366FF"),
  17. "density" = list(color = "black",
  18. fill = NA,
  19. alpha = NA),
  20. "dotplot" = list(color = "black"),
  21. "errorbarh" = list(color = "black"),
  22. "crossbar" = list(color = "black"),
  23. "errorbar" = list(color = "black"),
  24. "linerange" = list(color = "black"),
  25. "pointrange" = list(color = "black"),
  26. "map" = list(color = "black"),
  27. "path" = list(color = "black"),
  28. "line" = list(color = "black"),
  29. "step" = list(color = "black"),
  30. "point" = list(color = "black"),
  31. "polygon" = list(color = NA,
  32. fill = "grey20"),
  33. "quantile" = list(color = "#3366FF"),
  34. "rug" = list(color = "black"),
  35. "segment" = list(color = "black"),
  36. "smooth" = list(fill = "grey60",
  37. color = "#3366FF"),
  38. "spoke" = list(color = "black"),
  39. "label" = list(color = "black",
  40. family = ""),
  41. "text" = list(color = "black",
  42. family = ""),
  43. "rect" = list(fill = "grey35"),
  44. "tile" = list(fill = "grey20"),
  45. "violin" = list(fill = "white", color = "grey20")
  46. )