tests/testthat/test_visuals.R

context("visual unit tests")
test_that("plots drawn correctly", {
  vdiffr::expect_doppelganger("WeatherPlay Plot",
                              ggparty(py) +
                                geom_edge() +
                                geom_edge_label() +
                                geom_node_label(aes(label = splitvar),
                                                ids = "inner") +
                                geom_node_label(aes(label = info),
                                                ids = "terminal")
                              )
  })

Try the ggparty package in your browser

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

ggparty documentation built on July 18, 2019, 5:04 p.m.