Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_singleplotER”.
ft_singleplotER plots the event-related fields or potentials of a single channel
or the average over multiple channels. Multiple datasets can be overlayed.
Use as:
ft_sinlgeplotER(cfg, data)
ft_singleplotER(cfg, data1, data2, ..., dataN)
The data can be an ERP/ERF produced by FT_TIMELOCKANALYSIS, a powerspectrum
produced by FT_FREQANALYSIS or a coherencespectrum produced by FT_FREQDESCRIPTIVES.
If you specify multiple datasets they must contain the same channels, etc.
The configuration can have the following parameters:
cfg.xparam = field to be plotted on x-axis (default depends on data.dimord)
'time' or 'freq'
cfg.zparam = field to be plotted on y-axis (default depends on data.dimord)
'avg', 'powspctrm' or 'cohspctrm'
cfg.maskparameter = field in the first dataset to be used for masking of data
(not possible for mean over multiple channels, or when input contains multiple subjects
or trials)
cfg.maskstyle = style used for masking of data, 'box', 'thickness' or 'saturation' (default = 'box')
cfg.xlim = 'maxmin' or [xmin xmax] (default = 'maxmin')
cfg.ylim = 'maxmin' or [ymin ymax] (default = 'maxmin')
cfg.channel = Nx1 cell-array with selection of channels (default = 'all'),
see FT_CHANNELSELECTION for details
cfg.cohrefchannel = name of reference channel for visualising coherence, can be 'gui'
cfg.baseline = 'yes','no' or [time1 time2] (default = 'no'), see FT_TIMELOCKBASELINE
cfg.baselinetype = 'absolute' or 'relative' (default = 'absolute')
cfg.trials = 'all' or a selection given as a 1xN vector (default = 'all')
cfg.fontsize = font size of title (default = 8)
cfg.interactive = Interactive plot 'yes' or 'no' (default = 'no')
In a interactive plot you can select areas and produce a new
interactive plot when a selected area is clicked. Multiple areas
can be selected by holding down the SHIFT key.
cfg.renderer = 'painters', 'zbuffer',' opengl' or 'none' (default = [])
cfg.linestyle = linestyle/marker type, see options of the matlab PLOT function (default = '-')
can be a single style for all datasets, or a cell-array containing one style for each dataset
cfg.linewidth = linewidth in points (default = 0.5)
cfg.graphcolor = color(s) used for plotting the dataset(s) (default = 'brgkywrgbkywrgbkywrgbkyw')
alternatively, colors can be specified as Nx3 matrix of RGB values
See also:
ft_singleplotTFR, ft_multiplotER, ft_multiplotTFR, ft_topoplotER, ft_topoplotTFR