Nothing
# Tests for themes
#
# Author: mjskay
###############################################################################
suppressWarnings(suppressPackageStartupMessages({
library(dplyr)
library(tidyr)
}))
test_that("theme helper functions work", {
skip_if_no_vdiffr()
p = data.frame(
x = 1:2,
y = 0,
g = c("aaa","bbb"),
stringsAsFactors = FALSE
) %>%
ggplot(aes(x, y)) +
geom_point() +
theme_test() +
axis_titles_bottom_left()
vdiffr::expect_doppelganger("facet titles on right", {
p + facet_grid(g ~ .) +
facet_title_horizontal()
})
vdiffr::expect_doppelganger("facet titles on left", {
p + facet_grid(g ~ ., switch = "y") +
facet_title_horizontal()
})
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.