Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

35 lines
957B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/tidyr_helpers.R
  3. \name{process_long}
  4. \alias{process_long}
  5. \title{Processes a long dataframe and converts it into a dataset that can be plotted}
  6. \usage{
  7. process_long(x, ids, key, value, color_id = "lightgray", ...)
  8. }
  9. \arguments{
  10. \item{x}{a long 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 long dataframe and converts it into a dataset that can be plotted
  20. }
  21. \examples{
  22. long <- data_frame(
  23. year = c(2010L, 2011L, 2010L, 2011L, 2010L, 2011L),
  24. person = c("Alice", "Alice", "Bob", "Bob", "Charlie", "Charlie"),
  25. sales = c(105, 110, 100, 97, 90, 95)
  26. )
  27. process_long(long, ids = "year", key = "person", value = "sales")
  28. process_long(long, ids = "year", key = "person", value = "sales") \%>\% static_plot
  29. }