tests/testthat/test-ggdag.R

set.seed(1234)

test_that("basic ggdag quick functions works", {
  p1 <- ggdag(test_dag)
  p2 <- ggdag_classic(test_dag)
  expect_doppelganger("ggdag() plots basic DAG", p1)
  expect_doppelganger("ggdag_classic() plots basic DAG classically", p2)
})

Try the ggdag package in your browser

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

ggdag documentation built on Sept. 11, 2024, 6:12 p.m.