We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18192a5 commit a13e927Copy full SHA for a13e927
tests/testthat/test-ggplot-smooth.R
@@ -63,5 +63,7 @@ p8 <- qplot(carat, price, data = d) + facet_wrap(~cut) +
63
test_that("geom_smooth() works with facets", {
64
# 3 traces for each panel
65
info <- expect_traces(p8, 15, "facet")
66
+ n <- sum(unlist(sapply(info$traces, "[[", "showlegend")))
67
+ expect_equal(n, nlevels(d$cut))
68
})
69
0 commit comments