tests/testthat/test-gg-line.R

test_that("Lines plot", {
  data <- lubridate::lakers
  data$date <- lubridate::ymd(data$date)
  data <- data |> group_by(team, date) |> summarise(total = sum(x, na.rm = T))
  gg_line(data = data, vars = c( "date", "total"), opts = NULL)
  data <- data |> filter(team %in% c("IND", "CLE"))
  gg_line(data = data, vars = c( "date", "total", "team"), color_by = "team")


})
randommonkey/ggmagic documentation built on Oct. 24, 2023, 4:16 p.m.