| POP_ERPIMAGE | Draw an ERP-image plot of a given EEG channel or independent component. Uses a pop-up window if less than three (or four in one condition) input arguments are supplied. Calls erpimage(). For futher details see >> help erpimage |
![]() | |
| Usage: | >> pop_erpimage(EEG, typeplot); % pop-up a data entry window >> pop_erpimage(EEG, typeplot, lastcom); % pop-up a data entry window >> pop_erpimage(EEG, typeplot, channel); % no pop-up window >> pop_erpimage(EEG, typeplot, channel, projchan, title, smooth, decimate, sortingtype, sortingwin, sortingeventfield, renorm, options...); |
| Graphic interface: | |
"Channel or Component" |
[edit box] Enter channel number or component number to plot. erpimage() equivalent: 'channel' |
"Project to channel #" |
[edit box] (for plotting independent components). Allow reprojecting the component activity to a given channel or group of channels. erpimage() equivalent: 'projchan' |
"Smoothing" |
[text box] Smoothing parameter in number of trials. erpimage() equivalent: 'smooth' |
"Downsampling" |
[edit box] Decimate parameter. erpimage() equivalent: 'decimate' |
"Time limits" |
[edit box] Enter the time limits in milliseconds. erpimage() equivalent: the 1st and 2nd parameters of the 'limit' array |
"Figure title" |
[edit box] Enter the figure title here. If empty, a title is automatically generated. erpimage() equivalent: 'title' |
"Plot scalp map" |
[checkbox] Setting this option plot a scalp map of the channel location (or component topography) next to the erpimage. erpimage() equivalent: 'topo' |
"plot ERP" |
[checkbox] Setting this option plot the channel or component ERP below the ERP image. erpimage() equivalent: 'erp' |
"Plot colorbar" |
[checkbox] Plot the colorbar on the right of the erpimage. erpimage() equivalent: 'cbar' |
"ERP limits" |
[edit box] Set the minimum and maximum value for the ERP plot erpimage() equivalent: 3rd and 4th parameters of the 'limit' array |
"Color limits" |
[edit box] Set the color limits for the ERP image. erpimage() equivalent: 'caxis' |
"Epoch sorting field" |
[button and edit box] Specify the event field which values will be used to sort the trials. For instance, if you select the 'latency' fields, trials will be sorted by the latency of the selected events. erpimage() equivalent: 'sortingeventfield' |
"Event type(s)" |
[button and edit box] Specify which event subset to select, based on the event 'type' field values (to scan for event types, use menu Edit > Events values and look at the values of the 'type' field). For instance, entering type 'rt' (if defined) and field 'latency' in option aboce will sort trials on reaction time latencies. When several selected events are present in individual trials, the first event values are used for sorting and a warning is issued. erpimage() equivalent: 'sortingtype' |
"Event time range" |
[edit box] Specify which event subset to select based on event latency values. As the option above, this further restrains the selection of events. For example, entering [200 300] in this box, 'rt' for the event type (above), and 'latency' for the epoch sorting field will select trials with reaction-time latencies in between 200 and 300 ms. Trials with no such event will not be included in the ERP-image plot. erpimage() equivalent: 'sortingwin' |
"rescale" |
[edit box] 'yes', 'no', or a Matlab formula. erpimage() equivalent: 'renorm' |
"align" |
[edit box] Set this to 'Inf' to re-align the individual trials on the median latency of the selected events. Else, enter an epoch time (in ms) to align the events to (Ex: 0). erpimage() equivalent: 'align' |
"Don't sort by value" |
[checkbox] Check this box if you do not want to sort the trials but do want to plot the selected event values. erpimage() equivalent: 'nosort' |
"Don't plot value" |
[checkbox] Check this box if you do not want to plot the selected event values, but still want to sort the data trials according to these values. erpimage() eqivalent: 'noplot' |
"Sort by phase > Frequency" |
[edit box] Specify the frequency or frequency |
| range for sorting trials by phase. erpimage() equivalent: | 3rd and 4th inputs to 'phasesort' |
"Window center (ms)" |
[edit box] erpimage() equivalent: 1st 'phasesort' input |
| "Percent low-amp. trials to ignore" - [edit box] erpimage() equivalent: | 2nd 'phasesort' input |
"Wavelet cycle" |
[text] Number of wavelet cycles used for spectral decomposition at the specified latency. Cannot be edited. |
"Inter-trial coherence options > Frequency" |
[edit box] Frequency at which to compute coherence. Constrained to be the same as the "Sort by phase > Frequency" edit box. erpimage() equivalent: 'coher' |
"Signif. level" |
[edit box] Coherence significance cutoff, as a proability (Ex: .05). erpimage() equivalent: 'signif' |
"Amplitude limit" |
[edit box] Amplitude limits [min max] for the data power |
| plot at the selected frequency. erpimage() equivalent: | 5th and 6th inputs to 'limit' |
"Coher limits" |
[edit box] Upper limit (<=1) for the coherence plot. erpimage() equivalent: 7th and 8th inputs of 'limit' |
"Image amps" |
[checkbox] Check this box for plotting the spectral amplitude image at the selected frequency (instead of plotting EEG potential). erpimage() equivalent: 'plotamp' |
"Plot spectrum" |
[edit box] Plot the channel or component data spectrum in the top right corner of the ERP image. erpimage() equivalent: 'spec' |
"Baseline ampl." |
[edit box] Baseline amplitude for data power plot at the selected frequency. erpimage() equivalent: 7th inputs of 'limit' |
"Mark times" |
[edit box] Time(s) in ms to plot vertical lines. erpimage() equivalent: 'vert' |
"More options" |
[edit box] Enter 'key', 'value' sequences. Other erpimage() options not handled by this interface, including: 'erpstd' to plot the ERP standard deviation; 'auxvar' to plot auxilary variables; 'ampsort' to sort trials based on amplitude at the selected frequency, etc. For further information see >> help erpimage() |
| Inputs: | |
EEG |
dataset structure |
typeplot |
1=channel, 0=component {default: 1} |
lastcom |
string containing previous pop_erpimage command (from LASTCOM) or from the previous function call output. The values from this function call are used as default in the graphic interface. |
| Commandline options: | |
channel |
Index of channel or component(s) to plot {default: 1} |
projchan |
Channel to back-project the selected component(s) to. If plotting channel activity, this argument is ignored. If [], the ICA component activation is plotted {default []}. |
title |
['string'] Plot title {default: []} |
smooth |
Smoothing parameter (number of trials). {Default: 5} erpimage() equivalent: 'avewidth' |
decimate |
Decimate parameter (i.e. ratio of trials_in/trials_out). erpaimge() equivalent: 'decimate' {Default: 0} |
sortingtype |
Sorting event type(s) ([int vector]; []=all). See Notes below. Either a string or an integer. |
sortingwin |
Sorting event window [start, end] in seconds ([]=whole epoch) |
sortingeventfield |
Sorting field name. {default: none}. See Notes below. |
options |
erpimage() options, separated by commas (Ex: 'erp', 'cbar'). {Default: none}. For further details see >> erpimage help |
| Outputs from pop-up: | String containing the command used to evaluate this plotting function (saved by eeglab() as LASTCOM). Enter it as the 'lastcom' input to restore the previous parameters as defaults in a new pop_erpimage pop-up window |
| Outputs from commandline: | Same as erpimage(). Note: No outputs are returned when a window pops-up to ask for additional arguments |
| Notes: | 1) A new figure is created only when the pop-up window is called, so you may call this command with >3 args to draw in sbplot() axes. 2) To sort epochs, first define the event field to be used with the argument 'sortingeventfield' (for instance 'latency'). Then, because there may be several events with different latencies in a given epoch, it is possible to consider only a subsets of events using the 'sortingtype' and 'sortingwin' arguments. The 'sortingtype' argument selects events with definite types. The 'sortingwin' argument helps to define a specific time window in the epoch to select events. For instance the epoch time range may be -1 to 2 seconds but one may want to select events only in the range 0 to 1 second. These three parameters are forwarded to the function eeg_getepochevent, whose help message contains more details. |
| Author: | Arnaud Delorme, CNL / Salk Institute, 2001 |
| See also: | eeglab(), erpimage(), eeg_getepochevent |