tests/testthat/test-position-jitterdodge.R

test_that("position_jitterdodge() fails with meaningful error", {
  p <- ggplot(mtcars) + geom_point(aes(disp, mpg), position = 'jitterdodge')
  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.