tests/testthat/test-chart_annual_control_factors_by.R

context("chart_annual_control_factors")

test_that("chart_annual_control_factors_by (NOx and PM2.5)", {

  test_cf_data %>%
    filter(
      pol_abbr %in% c("NOx", "PM2.5")) %>%
    filter_categories(
      pull_distinct(
        test_cf_data,
        cat_id)) %>%
    chart_annual_control_factors_by(
      color = pol_abbr,
      flag_years = CY(2011),
      base_year = CY(2011),
      verbose = TRUE)

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