test_that("vec_major_breaks returns the same as scales::extended_breaks()", {
input <- 1:10
expect_equal(vec_major_breaks(input),
scales::extended_breaks()(input))
})
test_that("vec_minor_breaks returns the same as scales::regular_minor_breaks()", {
input <- 1:10
expect_equal(vec_minor_breaks(input, c(1, 5), 2),
scales::regular_minor_breaks()(input, c(1, 5), 2))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.