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.

41 satır
1020B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/process_data_helpers.R
  3. \name{add_color_join}
  4. \alias{add_color_join}
  5. \title{Adds Color to a processed data_frame}
  6. \usage{
  7. add_color_join(x, ids, by, color_header = "#737373",
  8. color_other = "#d0d0d0", color_missing = "#ffffff",
  9. color_fun = scales::brewer_pal(type = "qual", "Set1"),
  10. text_color = NA, ...)
  11. }
  12. \arguments{
  13. \item{x}{a processed data_frame}
  14. \item{ids}{a vector of ids for the color-matching}
  15. \item{by}{a vector of column names that constitute the by-argument of joins/sets}
  16. \item{color_header}{color for the header}
  17. \item{color_other}{color for "inactive" values}
  18. \item{color_missing}{color for missing values}
  19. \item{color_fun}{the function to generate the colors}
  20. \item{text_color}{the color for the text inside the tiles,
  21. defaults to white/black depending on tile color}
  22. \item{...}{}
  23. }
  24. \value{
  25. the processed data_frame with a new column .color
  26. }
  27. \description{
  28. Adds Color to a processed data_frame
  29. }
  30. \examples{
  31. NULL
  32. }