tests/testthat/test-pie_plot.R

context("pie_plot")

test_that("pie_plot works", {

  g = pie_plot(mtcars, "cyl", "1")

  expect_equal(g[["data"]][["share"]], c(14, 11, 7) / 32)

})

Try the ezplot package in your browser

Any scripts or data that you put into this service are public.

ezplot documentation built on Nov. 26, 2023, 5:07 p.m.