tests/testthat/test-stream-single-observation.R

test_that("geom_stream handles one observation per group", {
  d <- data.frame(x = 1:3, y = 1:3, id = 1:3)
  p <- ggplot(d) + geom_stream(aes(x, y, group = id))

  expect_message(ggplotGrob(p), "only one observation")
})

Try the ggvfields package in your browser

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

ggvfields documentation built on Nov. 16, 2026, 1:06 a.m.