Running examples in ‘afex-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: afex_plot
> ### Title: m-way Plot with Error Bars and Raw Data
> ### Aliases: afex_plot afex_plot.afex_aov afex_plot.mixed afex_plot.merMod
> ###   interaction_plot oneway_plot
> 
> ### ** Examples
> 
> # note: use library("ggplot") to avoid "ggplot2::" in the following
> 
> ##################################################################
> ##                2-factor Within-Subject Design                ##
> ##################################################################
> 
> data(md_12.1)
> aw <- aov_ez("id", "rt", md_12.1, within = c("angle", "noise"))
> 
> ##---------------------------------------------------------------
> ##                    Basic Interaction Plots                   -
> ##---------------------------------------------------------------
> 
> afex_plot(aw, x = "angle", trace = "noise") 
Warning: Panel(s) show within-subjects factors, but not within-subjects error bars.
For within-subjects error bars use: error = "within"
> # or: afex_plot(aw, x = ~angle, trace = ~noise)
> 
> afex_plot(aw, x = "noise", trace = "angle")
Warning: Panel(s) show within-subjects factors, but not within-subjects error bars.
For within-subjects error bars use: error = "within"
> 
> ### For within-subject designs, using within-subject CIs is better:
> afex_plot(aw, x = "angle", trace = "noise", error = "within") 
> (p1 <- afex_plot(aw, x = "noise", trace = "angle", error = "within"))
> 
> ## use different themes for nicer graphs:
> p1 + ggplot2::theme_bw()
> ## Not run: 
> ##D p1 + ggplot2::theme_light()
> ##D p1 + ggplot2::theme_minimal()
> ##D p1 + jtools::theme_apa()
> ##D p1 + ggpubr::theme_pubr()
> ##D 
> ##D ### set theme globally for R session:
> ##D ggplot2::theme_set(ggplot2::theme_bw())
> ##D 
> ##D ### There are several ways to deal with overlapping points in the background besides alpha
> ##D # 1. using the default data geom and ggplot2::position_jitterdodge
> ##D afex_plot(aw, x = "noise", trace = "angle", error = "within", dodge = 0.3,
> ##D           data_arg = list(
> ##D             position = 
> ##D               ggplot2::position_jitterdodge(
> ##D                 jitter.width = 0, 
> ##D                 jitter.height = 5, 
> ##D                 dodge.width = 0.3  ## needs to be same as dodge
> ##D                 ),
> ##D             color = "darkgrey"))
> ##D 
> ##D # 2. using ggbeeswarm::geom_beeswarm
> ##D afex_plot(aw, x = "noise", trace = "angle", error = "within", dodge = 0.5,
> ##D           data_geom = ggbeeswarm::geom_beeswarm,
> ##D           data_arg = list(
> ##D             dodge.width = 0.5,  ## needs to be same as dodge
> ##D             cex = 0.8,
> ##D             color = "darkgrey"))
> ##D 
> ##D # 3. do not display points, but use a violinplot: ggplot2::geom_violin
> ##D afex_plot(aw, x = "noise", trace = "angle", error = "within", 
> ##D           data_geom = ggplot2::geom_violin, 
> ##D           data_arg = list(width = 0.5))
> ##D 
> ##D # 4. violinplots with color: ggplot2::geom_violin
> ##D afex_plot(aw, x = "noise", trace = "angle", error = "within", 
> ##D           mapping = c("linetype", "shape", "fill"),
> ##D           data_geom = ggplot2::geom_violin, 
> ##D           data_arg = list(width = 0.5))
> ##D 
> ##D # 5. do not display points, but use a boxplot: ggplot2::geom_boxplot
> ##D afex_plot(aw, x = "noise", trace = "angle", error = "within", 
> ##D           data_geom = ggplot2::geom_boxplot, 
> ##D           data_arg = list(width = 0.3))
> ##D           
> ##D # 6. combine points with boxplot: ggpol::geom_boxjitter
> ##D afex_plot(aw, x = "noise", trace = "angle", error = "within", 
> ##D           data_geom = ggpol::geom_boxjitter, 
> ##D           data_arg = list(width = 0.3))
> ##D ## hides error bars!
> ##D 
> ##D # 7. nicer variant of ggpol::geom_boxjitter
> ##D afex_plot(aw, x = "noise", trace = "angle", error = "within", 
> ##D           mapping = c("shape", "fill"),
> ##D           data_geom = ggpol::geom_boxjitter, 
> ##D           data_arg = list(
> ##D             width = 0.3, 
> ##D             jitter.width = 0,
> ##D             jitter.height = 10,
> ##D             outlier.intersect = TRUE),
> ##D           point_arg = list(size = 2.5), 
> ##D           error_arg = list(size = 1.5, width = 0))
> ##D 
> ##D # 8. nicer variant of ggpol::geom_boxjitter without lines
> ##D afex_plot(aw, x = "noise", trace = "angle", error = "within", dodge = 0.7,
> ##D           mapping = c("shape", "fill"),
> ##D           data_geom = ggpol::geom_boxjitter, 
> ##D           data_arg = list(
> ##D             width = 0.5, 
> ##D             jitter.width = 0,
> ##D             jitter.height = 10,
> ##D             outlier.intersect = TRUE),
> ##D           point_arg = list(size = 2.5), 
> ##D           line_arg = list(linetype = 0),
> ##D           error_arg = list(size = 1.5, width = 0))
> ## End(Not run)
> 
> 
> ##---------------------------------------------------------------
> ##                      Basic One-Way Plots                     -
> ##---------------------------------------------------------------
> 
> afex_plot(aw, x = "angle", error = "within") ## default
NOTE: Results may be misleading due to involvement in interactions
Error in `[<-.data.frame`(`*tmp*`, is.na(out$x), "y", value = NA) : 
  replacement has 1 row, data has 0
Calls: <Anonymous> ... <Anonymous> -> .calculateSwarm -> [<- -> [<-.data.frame
Execution halted