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"))
})

Try the ggstream package in your browser

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

ggstream documentation built on May 6, 2021, 9:06 a.m.