carrien / free-speech

Analysis and plotting code for speech neuroimaging experiments.
MIT License
4 stars 5 forks source link

groupID add for timeAdapt #3

Closed rpkarlin closed 4 years ago

rpkarlin commented 4 years ago

Two changes in this one:

  1. variable groupId, which is groups(g), rather than relying on 1:length(groups) to provide the right index. groupId will be a number corresponding to a word/vowel lookup, depending on what groupings is. groupId is used to verify that a trial should be plotted in a subplot, and for the title.

This should result in no or minimal changes for most studies.

  1. Aesthetic change: added statement to change number of columns based on how many groups there are. If there are fewer than 4 groups, nCols is set to the number of groups; else set at 4 (previous nCols). This decompresses the subplot displays for experiments with fewer groups, like timeAdapt (1 word), noisyfb (3 words) and should have no effect on anything else (like stroopVOT with 9 words).

Have tested this on a few participants in timeAdapt, stroopVOT, and noisyfb.