We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d8c84 commit b385981Copy full SHA for b385981
tests/testthat/test-labels.r
@@ -26,3 +26,14 @@ test_that("Setting guide labels", {
26
# American spelling
27
expect_identical(labs(color = "my label")$colour, "my label")
28
})
29
+
30
+# Visual tests ------------------------------------------------------------
31
32
+test_that("geom_violin draws correctly", {
33
+ dat <- data.frame(x = 1:10, y = 10:1)
34
+ p <- ggplot(dat, aes(x = x, y = y)) + geom_point() + labs(tag = "Fig. A)")
35
36
+ vdiffr::expect_doppelganger("defaults", p)
37
+ vdiffr::expect_doppelganger("Other position", p + theme(plot.tag.position = 'bottom'))
38
+ vdiffr::expect_doppelganger("Manual", p + theme(plot.tag.position = c(0.05, 0.05)))
39
+})
0 commit comments