tests/testthat/test-stat_horizon.R

test_that("The origin is valid", {
  df <- data.frame(x = 1:5, y = c(1, 2, 3, 4, 5))

  p <- ggplot(df, aes(x, y))+stat_horizon(origin = 'origin')

  expect_warning(print(p), 'valid origin')
})
rivasiker/ggHoriPlot documentation built on July 12, 2024, 11:07 p.m.