CRAN Package Check Results for Maintainer ‘Michael A. Lawrence <mike.lwrnc at gmail.com>’

Last updated on 2025-10-10 11:51:45 CEST.

Package ERROR NOTE
ez 9 4

Package ez

Current CRAN status: ERROR: 9, NOTE: 4

Version: 4.4-0
Check: CRAN incoming feasibility
Result: NOTE Maintainer: ‘Michael A. Lawrence <mike.lwrnc@gmail.com>’ No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: person(given = c("Michael", "A."), family = "Lawrence", role = c("aut", "cre"), email = "mike.lwrnc@gmail.com") as necessary. Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 4.4-0
Check: Rd files
Result: NOTE checkRd: (-1) ez-package.Rd:19: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:20: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:21: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:22: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:23: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:24: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:25: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:26: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:27: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:28: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:29: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:30: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:32: Lost braces in \itemize; meant \describe ? checkRd: (-1) ez-package.Rd:33: Lost braces in \itemize; meant \describe ? Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64

Version: 4.4-0
Check: examples
Result: ERROR Running examples in ‘ez-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: ezPlot > ### Title: Plot data from a factorial experiment > ### Aliases: ezPlot > > ### ** Examples > > #Read in the ANT data (see ?ANT). > data(ANT) > head(ANT) subnum group block trial cue flank location direction rt 1 1 Treatment 1 1 None Neutral up left 398.6773 2 1 Treatment 1 2 Center Neutral up left 389.1822 3 1 Treatment 1 3 Double Neutral up left 333.2186 4 1 Treatment 1 4 Spatial Neutral up left 419.7640 5 1 Treatment 1 5 None Congruent up left 446.4754 6 1 Treatment 1 6 Center Congruent up left 338.9766 error 1 0 2 0 3 0 4 0 5 0 6 0 > ezPrecis(ANT) Data frame dimensions: 5760 rows, 10 columns type missing values min max subnum factor 0 20 1 20 group factor 0 2 Control Treatment block numeric 0 6 1 6 trial numeric 0 48 1 48 cue factor 0 4 None Spatial flank factor 0 3 Neutral Incongruent location factor 0 2 down up direction factor 0 2 left right rt numeric 0 5760 179.5972 657.6986 error numeric 0 2 0 1 > > > ## Not run: > ##D #Run an ANOVA on the mean correct RT data. > ##D mean_rt_anova = ezANOVA( > ##D data = ANT[ANT$error==0,] > ##D , dv = .(rt) > ##D , wid = .(subnum) > ##D , within = .(cue,flank) > ##D , between = .(group) > ##D ) > ##D > ##D #Show the ANOVA and assumption tests. > ##D print(mean_rt_anova) > ## End(Not run) > > #Plot the main effect of group. > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > #tweak the plot > # group_plot = group_plot + > # theme( > # panel.grid.major = element_blank() > # , panel.grid.minor = element_blank() > # ) > # print(group_plot) > > > > #use the "print_code" argument to print the > # code for creating the plot and return the > # data to plot. This is useful when you want > # to learn how to create plots from scratch > # (which can in turn be useful when you can't > # get a combination of ezPlot and tweaking to > # achieve what you want) > group_plot_data = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , print_code = TRUE + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() ggplot( data = stats , mapping = aes( y = Mean , x = group ) )+ geom_point()+ geom_errorbar( mapping = aes( ymin = lo , ymax = hi ) , linetype = 1 , show.legend = FALSE , width = 0.25 , alpha = .5 )+ labs( x = 'Group' , y = 'RT (ms)' )> > > #Re-plot the main effect of group, using the levels > ##argument to re-arrange/rename levels of group > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , levels = list( + group = list( + new_order = c('Treatment','Control') + , new_names = c('Treatment\nGroup','Control\nGroup') + ) + ) + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > > #Plot the cue*flank interaction. > cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , x = .(flank) + , split = .(cue) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. > > #Show the plot. > print(cue_by_flank_plot) > > > #Plot the cue*flank interaction by collapsing the cue effect to > ##the difference between None and Double > cue_by_flank_plot2 = ezPlot( + data = ANT[ ANT$error==0 & (ANT$cue %in% c('None','Double')) ,] + , dv = .(rt) + , wid = .(subnum) + , within = .(flank) + , diff = .(cue) + , reverse_diff = TRUE + , x = .(flank) + , x_lab = 'Flanker' + , y_lab = 'RT Effect (None - Double, ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Collapsing "cue" to a difference score ("None"-"Double") prior to computing statistics. > > #Show the plot. > print(cue_by_flank_plot2) > > > > #Plot the group*cue*flank interaction. > group_by_cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , between = .(group) + , x = .(flank) + , split = .(cue) + , col = .(group) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Mixed within-and-between-Ss effect requested; FLSD is only appropriate for within-Ss comparisons (see warning in ?ezStats or ?ezPlot). Error: ! The `facets` argument of `facet_grid()` was deprecated in ggplot2 2.2.0 and is now defunct. ℹ Please use the `rows` argument instead. Backtrace: ▆ 1. └─ez::ezPlot(...) 2. ├─base::eval(parse(text = p)) 3. │ └─base::eval(parse(text = p)) 4. └─ggplot2::facet_grid(facets = . ~ group, scales = "free_y") 5. └─lifecycle::deprecate_stop("2.2.0", "facet_grid(facets)", "facet_grid(rows)") 6. └─lifecycle:::deprecate_stop0(msg) 7. └─rlang::cnd_signal(...) Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed ezBoot 4.366 0.305 5.464 Flavor: r-devel-linux-x86_64-debian-clang

Version: 4.4-0
Check: examples
Result: ERROR Running examples in ‘ez-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: ezPlot > ### Title: Plot data from a factorial experiment > ### Aliases: ezPlot > > ### ** Examples > > #Read in the ANT data (see ?ANT). > data(ANT) > head(ANT) subnum group block trial cue flank location direction rt 1 1 Treatment 1 1 None Neutral up left 398.6773 2 1 Treatment 1 2 Center Neutral up left 389.1822 3 1 Treatment 1 3 Double Neutral up left 333.2186 4 1 Treatment 1 4 Spatial Neutral up left 419.7640 5 1 Treatment 1 5 None Congruent up left 446.4754 6 1 Treatment 1 6 Center Congruent up left 338.9766 error 1 0 2 0 3 0 4 0 5 0 6 0 > ezPrecis(ANT) Data frame dimensions: 5760 rows, 10 columns type missing values min max subnum factor 0 20 1 20 group factor 0 2 Control Treatment block numeric 0 6 1 6 trial numeric 0 48 1 48 cue factor 0 4 None Spatial flank factor 0 3 Neutral Incongruent location factor 0 2 down up direction factor 0 2 left right rt numeric 0 5760 179.5972 657.6986 error numeric 0 2 0 1 > > > ## Not run: > ##D #Run an ANOVA on the mean correct RT data. > ##D mean_rt_anova = ezANOVA( > ##D data = ANT[ANT$error==0,] > ##D , dv = .(rt) > ##D , wid = .(subnum) > ##D , within = .(cue,flank) > ##D , between = .(group) > ##D ) > ##D > ##D #Show the ANOVA and assumption tests. > ##D print(mean_rt_anova) > ## End(Not run) > > #Plot the main effect of group. > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > #tweak the plot > # group_plot = group_plot + > # theme( > # panel.grid.major = element_blank() > # , panel.grid.minor = element_blank() > # ) > # print(group_plot) > > > > #use the "print_code" argument to print the > # code for creating the plot and return the > # data to plot. This is useful when you want > # to learn how to create plots from scratch > # (which can in turn be useful when you can't > # get a combination of ezPlot and tweaking to > # achieve what you want) > group_plot_data = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , print_code = TRUE + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() ggplot( data = stats , mapping = aes( y = Mean , x = group ) )+ geom_point()+ geom_errorbar( mapping = aes( ymin = lo , ymax = hi ) , linetype = 1 , show.legend = FALSE , width = 0.25 , alpha = .5 )+ labs( x = 'Group' , y = 'RT (ms)' )> > > #Re-plot the main effect of group, using the levels > ##argument to re-arrange/rename levels of group > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , levels = list( + group = list( + new_order = c('Treatment','Control') + , new_names = c('Treatment\nGroup','Control\nGroup') + ) + ) + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > > #Plot the cue*flank interaction. > cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , x = .(flank) + , split = .(cue) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. > > #Show the plot. > print(cue_by_flank_plot) > > > #Plot the cue*flank interaction by collapsing the cue effect to > ##the difference between None and Double > cue_by_flank_plot2 = ezPlot( + data = ANT[ ANT$error==0 & (ANT$cue %in% c('None','Double')) ,] + , dv = .(rt) + , wid = .(subnum) + , within = .(flank) + , diff = .(cue) + , reverse_diff = TRUE + , x = .(flank) + , x_lab = 'Flanker' + , y_lab = 'RT Effect (None - Double, ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Collapsing "cue" to a difference score ("None"-"Double") prior to computing statistics. > > #Show the plot. > print(cue_by_flank_plot2) > > > > #Plot the group*cue*flank interaction. > group_by_cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , between = .(group) + , x = .(flank) + , split = .(cue) + , col = .(group) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Mixed within-and-between-Ss effect requested; FLSD is only appropriate for within-Ss comparisons (see warning in ?ezStats or ?ezPlot). Error: ! The `facets` argument of `facet_grid()` was deprecated in ggplot2 2.2.0 and is now defunct. ℹ Please use the `rows` argument instead. Backtrace: ▆ 1. └─ez::ezPlot(...) 2. ├─base::eval(parse(text = p)) 3. │ └─base::eval(parse(text = p)) 4. └─ggplot2::facet_grid(facets = . ~ group, scales = "free_y") 5. └─lifecycle::deprecate_stop("2.2.0", "facet_grid(facets)", "facet_grid(rows)") 6. └─lifecycle:::deprecate_stop0(msg) 7. └─rlang::cnd_signal(...) Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 4.4-0
Check: examples
Result: ERROR Running examples in ‘ez-Ex.R’ failed The error most likely occurred in: > ### Name: ezPlot > ### Title: Plot data from a factorial experiment > ### Aliases: ezPlot > > ### ** Examples > > #Read in the ANT data (see ?ANT). > data(ANT) > head(ANT) subnum group block trial cue flank location direction rt 1 1 Treatment 1 1 None Neutral up left 398.6773 2 1 Treatment 1 2 Center Neutral up left 389.1822 3 1 Treatment 1 3 Double Neutral up left 333.2186 4 1 Treatment 1 4 Spatial Neutral up left 419.7640 5 1 Treatment 1 5 None Congruent up left 446.4754 6 1 Treatment 1 6 Center Congruent up left 338.9766 error 1 0 2 0 3 0 4 0 5 0 6 0 > ezPrecis(ANT) Data frame dimensions: 5760 rows, 10 columns type missing values min max subnum factor 0 20 1 20 group factor 0 2 Control Treatment block numeric 0 6 1 6 trial numeric 0 48 1 48 cue factor 0 4 None Spatial flank factor 0 3 Neutral Incongruent location factor 0 2 down up direction factor 0 2 left right rt numeric 0 5760 179.5972 657.6986 error numeric 0 2 0 1 > > > ## Not run: > ##D #Run an ANOVA on the mean correct RT data. > ##D mean_rt_anova = ezANOVA( > ##D data = ANT[ANT$error==0,] > ##D , dv = .(rt) > ##D , wid = .(subnum) > ##D , within = .(cue,flank) > ##D , between = .(group) > ##D ) > ##D > ##D #Show the ANOVA and assumption tests. > ##D print(mean_rt_anova) > ## End(Not run) > > #Plot the main effect of group. > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > #tweak the plot > # group_plot = group_plot + > # theme( > # panel.grid.major = element_blank() > # , panel.grid.minor = element_blank() > # ) > # print(group_plot) > > > > #use the "print_code" argument to print the > # code for creating the plot and return the > # data to plot. This is useful when you want > # to learn how to create plots from scratch > # (which can in turn be useful when you can't > # get a combination of ezPlot and tweaking to > # achieve what you want) > group_plot_data = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , print_code = TRUE + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() ggplot( data = stats , mapping = aes( y = Mean , x = group ) )+ geom_point()+ geom_errorbar( mapping = aes( ymin = lo , ymax = hi ) , linetype = 1 , show.legend = FALSE , width = 0.25 , alpha = .5 )+ labs( x = 'Group' , y = 'RT (ms)' )> > > #Re-plot the main effect of group, using the levels > ##argument to re-arrange/rename levels of group > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , levels = list( + group = list( + new_order = c('Treatment','Control') + , new_names = c('Treatment\nGroup','Control\nGroup') + ) + ) + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > > #Plot the cue*flank interaction. > cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , x = .(flank) + , split = .(cue) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. > > #Show the plot. > print(cue_by_flank_plot) > > > #Plot the cue*flank interaction by collapsing the cue effect to > ##the difference between None and Double > cue_by_flank_plot2 = ezPlot( + data = ANT[ ANT$error==0 & (ANT$cue %in% c('None','Double')) ,] + , dv = .(rt) + , wid = .(subnum) + , within = .(flank) + , diff = .(cue) + , reverse_diff = TRUE + , x = .(flank) + , x_lab = 'Flanker' + , y_lab = 'RT Effect (None - Double, ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Collapsing "cue" to a difference score ("None"-"Double") prior to computing statistics. > > #Show the plot. > print(cue_by_flank_plot2) > > > > #Plot the group*cue*flank interaction. > group_by_cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , between = .(group) + , x = .(flank) + , split = .(cue) + , col = .(group) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Mixed within-and-between-Ss effect requested; FLSD is only appropriate for within-Ss comparisons (see warning in ?ezStats or ?ezPlot). Error: ! The `facets` argument of `facet_grid()` was deprecated in ggplot2 2.2.0 and is now defunct. ℹ Please use the `rows` argument instead. Backtrace: ▆ 1. └─ez::ezPlot(...) 2. ├─base::eval(parse(text = p)) 3. │ └─base::eval(parse(text = p)) 4. └─ggplot2::facet_grid(facets = . ~ group, scales = "free_y") 5. └─lifecycle::deprecate_stop("2.2.0", "facet_grid(facets)", "facet_grid(rows)") 6. └─lifecycle:::deprecate_stop0(msg) 7. └─rlang::cnd_signal(...) Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 4.4-0
Check: examples
Result: ERROR Running examples in ‘ez-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: ezPlot > ### Title: Plot data from a factorial experiment > ### Aliases: ezPlot > > ### ** Examples > > #Read in the ANT data (see ?ANT). > data(ANT) > head(ANT) subnum group block trial cue flank location direction rt 1 1 Treatment 1 1 None Neutral up left 398.6773 2 1 Treatment 1 2 Center Neutral up left 389.1822 3 1 Treatment 1 3 Double Neutral up left 333.2186 4 1 Treatment 1 4 Spatial Neutral up left 419.7640 5 1 Treatment 1 5 None Congruent up left 446.4754 6 1 Treatment 1 6 Center Congruent up left 338.9766 error 1 0 2 0 3 0 4 0 5 0 6 0 > ezPrecis(ANT) Data frame dimensions: 5760 rows, 10 columns type missing values min max subnum factor 0 20 1 20 group factor 0 2 Control Treatment block numeric 0 6 1 6 trial numeric 0 48 1 48 cue factor 0 4 None Spatial flank factor 0 3 Neutral Incongruent location factor 0 2 down up direction factor 0 2 left right rt numeric 0 5760 179.5972 657.6986 error numeric 0 2 0 1 > > > ## Not run: > ##D #Run an ANOVA on the mean correct RT data. > ##D mean_rt_anova = ezANOVA( > ##D data = ANT[ANT$error==0,] > ##D , dv = .(rt) > ##D , wid = .(subnum) > ##D , within = .(cue,flank) > ##D , between = .(group) > ##D ) > ##D > ##D #Show the ANOVA and assumption tests. > ##D print(mean_rt_anova) > ## End(Not run) > > #Plot the main effect of group. > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > #tweak the plot > # group_plot = group_plot + > # theme( > # panel.grid.major = element_blank() > # , panel.grid.minor = element_blank() > # ) > # print(group_plot) > > > > #use the "print_code" argument to print the > # code for creating the plot and return the > # data to plot. This is useful when you want > # to learn how to create plots from scratch > # (which can in turn be useful when you can't > # get a combination of ezPlot and tweaking to > # achieve what you want) > group_plot_data = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , print_code = TRUE + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() ggplot( data = stats , mapping = aes( y = Mean , x = group ) )+ geom_point()+ geom_errorbar( mapping = aes( ymin = lo , ymax = hi ) , linetype = 1 , show.legend = FALSE , width = 0.25 , alpha = .5 )+ labs( x = 'Group' , y = 'RT (ms)' )> > > #Re-plot the main effect of group, using the levels > ##argument to re-arrange/rename levels of group > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , levels = list( + group = list( + new_order = c('Treatment','Control') + , new_names = c('Treatment\nGroup','Control\nGroup') + ) + ) + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > > #Plot the cue*flank interaction. > cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , x = .(flank) + , split = .(cue) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. > > #Show the plot. > print(cue_by_flank_plot) > > > #Plot the cue*flank interaction by collapsing the cue effect to > ##the difference between None and Double > cue_by_flank_plot2 = ezPlot( + data = ANT[ ANT$error==0 & (ANT$cue %in% c('None','Double')) ,] + , dv = .(rt) + , wid = .(subnum) + , within = .(flank) + , diff = .(cue) + , reverse_diff = TRUE + , x = .(flank) + , x_lab = 'Flanker' + , y_lab = 'RT Effect (None - Double, ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Collapsing "cue" to a difference score ("None"-"Double") prior to computing statistics. > > #Show the plot. > print(cue_by_flank_plot2) > > > > #Plot the group*cue*flank interaction. > group_by_cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , between = .(group) + , x = .(flank) + , split = .(cue) + , col = .(group) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Mixed within-and-between-Ss effect requested; FLSD is only appropriate for within-Ss comparisons (see warning in ?ezStats or ?ezPlot). Error: ! The `facets` argument of `facet_grid()` was deprecated in ggplot2 2.2.0 and is now defunct. ℹ Please use the `rows` argument instead. Backtrace: ▆ 1. └─ez::ezPlot(...) 2. ├─base::eval(parse(text = p)) 3. │ └─base::eval(parse(text = p)) 4. └─ggplot2::facet_grid(facets = . ~ group, scales = "free_y") 5. └─lifecycle::deprecate_stop("2.2.0", "facet_grid(facets)", "facet_grid(rows)") 6. └─lifecycle:::deprecate_stop0(msg) 7. └─rlang::cnd_signal(...) Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed ezBoot 4.115 0.11 5.199 Flavor: r-patched-linux-x86_64

Version: 4.4-0
Check: examples
Result: ERROR Running examples in ‘ez-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: ezPlot > ### Title: Plot data from a factorial experiment > ### Aliases: ezPlot > > ### ** Examples > > #Read in the ANT data (see ?ANT). > data(ANT) > head(ANT) subnum group block trial cue flank location direction rt 1 1 Treatment 1 1 None Neutral up left 398.6773 2 1 Treatment 1 2 Center Neutral up left 389.1822 3 1 Treatment 1 3 Double Neutral up left 333.2186 4 1 Treatment 1 4 Spatial Neutral up left 419.7640 5 1 Treatment 1 5 None Congruent up left 446.4754 6 1 Treatment 1 6 Center Congruent up left 338.9766 error 1 0 2 0 3 0 4 0 5 0 6 0 > ezPrecis(ANT) Data frame dimensions: 5760 rows, 10 columns type missing values min max subnum factor 0 20 1 20 group factor 0 2 Control Treatment block numeric 0 6 1 6 trial numeric 0 48 1 48 cue factor 0 4 None Spatial flank factor 0 3 Neutral Incongruent location factor 0 2 down up direction factor 0 2 left right rt numeric 0 5760 179.5972 657.6986 error numeric 0 2 0 1 > > > ## Not run: > ##D #Run an ANOVA on the mean correct RT data. > ##D mean_rt_anova = ezANOVA( > ##D data = ANT[ANT$error==0,] > ##D , dv = .(rt) > ##D , wid = .(subnum) > ##D , within = .(cue,flank) > ##D , between = .(group) > ##D ) > ##D > ##D #Show the ANOVA and assumption tests. > ##D print(mean_rt_anova) > ## End(Not run) > > #Plot the main effect of group. > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > #tweak the plot > # group_plot = group_plot + > # theme( > # panel.grid.major = element_blank() > # , panel.grid.minor = element_blank() > # ) > # print(group_plot) > > > > #use the "print_code" argument to print the > # code for creating the plot and return the > # data to plot. This is useful when you want > # to learn how to create plots from scratch > # (which can in turn be useful when you can't > # get a combination of ezPlot and tweaking to > # achieve what you want) > group_plot_data = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , print_code = TRUE + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() ggplot( data = stats , mapping = aes( y = Mean , x = group ) )+ geom_point()+ geom_errorbar( mapping = aes( ymin = lo , ymax = hi ) , linetype = 1 , show.legend = FALSE , width = 0.25 , alpha = .5 )+ labs( x = 'Group' , y = 'RT (ms)' )> > > #Re-plot the main effect of group, using the levels > ##argument to re-arrange/rename levels of group > group_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , between = .(group) + , x = .(group) + , do_lines = FALSE + , x_lab = 'Group' + , y_lab = 'RT (ms)' + , levels = list( + group = list( + new_order = c('Treatment','Control') + , new_names = c('Treatment\nGroup','Control\nGroup') + ) + ) + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Coefficient covariances computed by hccm() > > #Show the plot. > print(group_plot) > > > #Plot the cue*flank interaction. > cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , x = .(flank) + , split = .(cue) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. > > #Show the plot. > print(cue_by_flank_plot) > > > #Plot the cue*flank interaction by collapsing the cue effect to > ##the difference between None and Double > cue_by_flank_plot2 = ezPlot( + data = ANT[ ANT$error==0 & (ANT$cue %in% c('None','Double')) ,] + , dv = .(rt) + , wid = .(subnum) + , within = .(flank) + , diff = .(cue) + , reverse_diff = TRUE + , x = .(flank) + , x_lab = 'Flanker' + , y_lab = 'RT Effect (None - Double, ms)' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Collapsing "cue" to a difference score ("None"-"Double") prior to computing statistics. > > #Show the plot. > print(cue_by_flank_plot2) > > > > #Plot the group*cue*flank interaction. > group_by_cue_by_flank_plot = ezPlot( + data = ANT[ANT$error==0,] + , dv = .(rt) + , wid = .(subnum) + , within = .(cue,flank) + , between = .(group) + , x = .(flank) + , split = .(cue) + , col = .(group) + , x_lab = 'Flanker' + , y_lab = 'RT (ms)' + , split_lab = 'Cue' + ) Warning: Collapsing data to cell means. *IF* the requested effects are a subset of the full design, you must use the "within_full" argument, else results may be inaccurate. Warning: Mixed within-and-between-Ss effect requested; FLSD is only appropriate for within-Ss comparisons (see warning in ?ezStats or ?ezPlot). Error: ! The `facets` argument of `facet_grid()` was deprecated in ggplot2 2.2.0 and is now defunct. ℹ Please use the `rows` argument instead. Backtrace: ▆ 1. └─ez::ezPlot(...) 2. ├─base::eval(parse(text = p)) 3. │ └─base::eval(parse(text = p)) 4. └─ggplot2::facet_grid(facets = . ~ group, scales = "free_y") 5. └─lifecycle::deprecate_stop("2.2.0", "facet_grid(facets)", "facet_grid(rows)") 6. └─lifecycle:::deprecate_stop0(msg) 7. └─rlang::cnd_signal(...) Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed ezBoot 4.167 0.094 5.178 Flavor: r-release-linux-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.