tests/testthat/test-plot_overlap.R

overlap_plot <- plot_overlap(t_dat, protein = t_protein, state = t_state_1)

test_that("class is right", 
          expect_is(overlap_plot, "ggplot"))

test_that("plot works", 
          vdiffr::expect_doppelganger("overlap plot", overlap_plot))

Try the HaDeX2 package in your browser

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

HaDeX2 documentation built on Feb. 9, 2026, 5:07 p.m.