You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Plot with fixed scales in facet_grid() works fineedited_mpg %>%
ggplot(aes(x= as.factor(year),
y=hwy)) +
geom_point() +
geom_signif(comparison=list(c(1, 3),
c(2, 4)),
test='t.test') +
facet_grid(cols= vars(cyl)) +
coord_cartesian(ylim= c(15, 50))
This doesn't work
# Same as above but 'free_x' scales in facet_grid() does not workedited_mpg %>%
ggplot(aes(x= as.factor(year),
y=hwy)) +
geom_point() +
geom_signif(comparison=list(c(1, 3),
c(2, 4)),
test='t.test') +
coord_cartesian(ylim= c(15, 50)) +
facet_grid(cols= vars(cyl),
scales='free_x')
#> Warning: Computation failed in `stat_signif()`:#> not enough 'y' observations#> Computation failed in `stat_signif()`:#> not enough 'y' observations
So, as stated in the subject - when I use
scales = 'free_x'
infacet_grid()
, geom_signif failsReprex
Data prep
This works
This doesn't work
Created on 2022-07-25 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: