# NOT RUN {
set.seed(123)
# between-subjects ---------------------------------------
# with defaults
ggstatsplot::subtitle_anova_bayes(
  data = ggplot2::msleep,
  x = vore,
  y = sleep_rem
)
# modifying the defaults
ggstatsplot::subtitle_anova_bayes(
  data = ggplot2::msleep,
  x = vore,
  y = sleep_rem,
  k = 3,
  bf.prior = 0.8
)
# repeated measures ---------------------------------------
ggstatsplot::subtitle_anova_bayes(
  data = WRS2::WineTasting,
  x = Wine,
  y = Taste,
  paired = TRUE,
  k = 4
)
# }
Run the code above in your browser using DataLab