Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

36 lines
840B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/tidyr_helpers.R
  3. \name{process_wide}
  4. \alias{process_wide}
  5. \title{Processes a wide dataframe and converts it into a dataset that can be plotted}
  6. \usage{
  7. process_wide(x, ids, key, color_id = "lightgray", ...)
  8. }
  9. \arguments{
  10. \item{x}{a wide data frame}
  11. \item{ids}{a vector of id-variables that are already in the tidy-format}
  12. \item{key}{a vector of key-variables}
  13. \item{color_id}{the color for the id-body}
  14. \item{...}{}
  15. }
  16. \value{
  17. }
  18. \description{
  19. Processes a wide dataframe and converts it into a dataset that can be plotted
  20. }
  21. \examples{
  22. wide <- data_frame(
  23. year = 2010:2011,
  24. Alice = c(105, 110),
  25. Bob = c(100, 97),
  26. Charlie = c(90, 95)
  27. )
  28. process_wide(wide, ids = "year", key = "person")
  29. process_wide(wide, ids = "year", key = "person") \%>\% static_plot
  30. }