tests/testthat/test-plot_xy_CatGroup.R

test_that("XY plot and Cat groups works", {
  g1 <- plot_xy_CatGroup(mtcars, 
                        disp, hp,
                        cyl,
                        TextXAngle = 45)
  expect_s3_class(g1, "ggplot")
  #expect_equal(g1$theme$text$size, 20)
  #expect_equal(g1$labels$x[1], "disp")
  #expect_equal(g1$labels$y[1], "hp")
  #expect_equal(get_guide_angle(g1, "x"), 45)
})

Try the grafify package in your browser

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

grafify documentation built on May 29, 2024, 3:49 a.m.