Skip to content

Commit f48baf3

Browse files
committed
include grid in snapshot
1 parent 33a9a02 commit f48baf3

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

tests/testthat/_snaps/coord-flip/turning-off-secondary-title-with-coord-flip.svg

Lines changed: 11 additions & 0 deletions
Loading

tests/testthat/test-coord-flip.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ test_that("secondary labels are correctly turned off", {
44
ggplot(mtcars, aes(x = mpg, y = cyl)) +
55
geom_point() +
66
scale_x_continuous(sec.axis = dup_axis(guide = guide_axis(title = NULL))) +
7-
coord_flip()
7+
coord_flip() +
8+
theme_test() +
9+
theme(
10+
panel.grid.major.y = element_line(colour = "grey80"),
11+
panel.grid.major.x = element_line(colour = "grey90")
12+
)
813
)
914
})
1015

0 commit comments

Comments
 (0)