tests/testthat/test-ggplot-blank.R

test_that("geom_blank", {
  l <- ggplotly(qplot())$x
  
  expect_length(l$data, 1)
  expect_false(l$data[[1]]$visible)
  
  l <- ggplotly(ggplot())$x
  
  expect_length(l$data, 1)
  expect_false(l$data[[1]]$visible)
  
})
moupegnoukevin/plotly documentation built on Dec. 21, 2021, 9:07 p.m.