tests/testthat/test-geom-linerange.R

test_that("geom_linerange request the right aesthetics", {
  p <- ggplot(mtcars) + geom_linerange(aes(disp, mpg), ymin = 2)
  expect_snapshot_error(ggplot_build(p))
})

Try the ggplot2 package in your browser

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

ggplot2 documentation built on Oct. 12, 2023, 5:08 p.m.