tests/testthat/test-hdr-boxplot.R

context("hdr-box-plot")
library(ggplot2)
set.seed(5)
test_that("hdr box plot draws correctly", {
  hdr_boxplot <- ggplot(faithful, aes(y = eruptions)) +
    geom_hdr_boxplot() +
    theme_bw()

  vdiffr::expect_doppelganger(
    "hdr boxplot",
    hdr_boxplot
  )
})

Try the gghdr package in your browser

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

gghdr documentation built on Oct. 29, 2022, 1:16 a.m.