Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report: std_erspplot function when drawing 2 by 2 conditions using channel data #758

Open
sato16 opened this issue Apr 15, 2024 · 0 comments

Comments

@sato16
Copy link

sato16 commented Apr 15, 2024

Dear EEGLAB manager,
Thank you for developing and maintaining a great toolbox. I may be wrong but I found a bug in std_erspplot function so I would like to share the information.

Description

Issue

When I try to plot ersp topomap in channel data at 2 by 2 conditions, the plot of statistical results seems incorrect. In addition, this bug may relate to https://sccn.ucsd.edu/pipermail/eeglablist/2022/016748.html

Reproducing bug

I reproduced the bug by using 5-subject experiment tutorial data, so I attached mlx file.
plot_ERSPtest_2by2.mlx.zip

Cause of the bug

The solution seems to pass stat.effect as argument. In particular, [line 391 in std_erspplot.m] should be changed as below

  • before:
std_chantopo(allersp, 'groupstats', pgroup, 'condstats', pcond, 'interstats', pinter, 'caxis', opt.caxis, ...
'chanlocs', locs, 'threshold', alpha, 'titles', alltitles);
  • after:
 std_chantopo(allersp, 'groupstats', pgroup, 'condstats', pcond, 'interstats', pinter, 'caxis', opt.caxis, ...
'chanlocs', locs, 'threshold', alpha, 'titles', alltitles, 'effect', stats.effect);

Versions

OS version [mac Monterey version 12.6]
Matlab version [matlab 2023b]
EEGLAB version [EEGLAB 2024.0]

I hope this will be useful to you.
Best regards,
Fumiaki Sato

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant