test_that("themes are stable", {
df <- tibble::tibble(x = 1:3, y = 1:3, z = c("a", "b", "a"), a = 1)
plot <- ggplot2::ggplot(df, ggplot2::aes(x, y, colour = z)) +
ggplot2::geom_point()
vdiffr::expect_doppelganger("default_theme", plot + default_theme())
vdiffr::expect_doppelganger("theme_coiaf", plot + theme_coiaf())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.