tests/testthat/test-theme_neat.R

test_that("theme_neat works", {
  pl <- iris %>% 
    ggplot2::ggplot(ggplot2::aes(x = Sepal.Length,
                                 y = Sepal.Width,
                                 colour = Species)) +
    ggplot2::geom_point() +
    ggplot2::facet_wrap(~Species) +
    theme_neat() 
  
  expect_s3_class(pl,'ggplot')
})
jasenfinch/jfmisc documentation built on Feb. 21, 2024, 7:10 a.m.