tests/testthat/test_geom_timeline.R

test_that("Test geom_timeline",
          {
            XMin <- lubridate::ymd('2000-01-01')
            XMax <- lubridate::ymd('2020-01-01')
            Plot <- readr::read_delim(system.file("extdata", "signif.txt", package = "TheCapstoneProject"), delim = '\t') %>%
              eq_location_clean() %>%
              ggplot2::ggplot() +
              geom_timeline(aes(x = DATE, xmin = XMin, xmax = XMax, size = EQ_PRIMARY, color = TOTAL_DEATHS))
            expect_is(Plot, class = c("gg", "ggplot"))
          })
ekawabata/TheCapstoneProject documentation built on June 27, 2020, 7:58 a.m.