tests/testthat/test-geom_stream.R

library(ggplot2)

test_that("geom_stream", {
  expect_equal(class(ggplot(blockbusters, aes(year, box_office, fill = genre)) +
                 geom_stream()), c("gg", "ggplot"))
})
davidsjoberg/ggstream documentation built on May 11, 2021, 3:23 p.m.