tests/testthat/test-chart_annual_growth_by.R

context("chart_annual_growth")

test_that("test_growth_data", {
  expect_silent(
    test_growth_data %>%
      chart_annual_growth(
        base_year = CY(2015),
        verbose = FALSE))
})

test_that("test_growth_data, gathered by year", {
  expect_silent(
    test_growth_data %>%
      gather_years(
        gf_qty) %>%
      chart_annual_growth(
        base_year = CY(2015),
        verbose = FALSE))
})

test_that("test_ems_data, color = cnty_abbr", {

  expect_silent(
    test_ems_data %>%
      chart_annual_growth_by(
        cnty_abbr,
        flag_years = CY(2015),
        flag_unique = TRUE,
        base_year = CY(2015),
        verbose = FALSE))

})
BAAQMD/ggtools documentation built on Feb. 8, 2023, 6:22 p.m.