dwww Home | Show directory contents | Find package

skip_if_not_installed("hexbin")
test_that("can use length 1 binwidth", {
  df <- data_frame(x = c(1, 1, 2), y = c(1, 1, 2))
  p <- ggplot(df, aes(x, y)) + stat_binhex(binwidth = 1)

  expect_equal(nrow(layer_data(p)), 2)
})

Generated by dwww version 1.15 on Sat May 18 07:31:20 CEST 2024.