TOPOPLOT Plot a topographic map of an EEG field as a 2-D circular view (looking down at the top of the head) using cointerpolation on a fine cartesian grid.

Usage: >> topoplot(datavector,'eloc_file');
>> topoplot(datavector,'eloc_file', 'Param1','Value1', ...)

Inputs:
datavector   
vector of values at the corresponding locations.
'eloc_file'   
name of an EEG electrode position file {0 -> 'chan_file'}

Optional Parameters:
'colormap'   
any sized colormap
'interplimits'   
'electrodes' to furthest electrode 'head' to edge of head {default 'head'}
'gridscale'   
scaling grid size {default 67}
'maplimits'   
'absmax' +/- the absolute-max 'maxmin' scale to data range [clim1,clim2] user-definined lo/hi
{default   
'absmax'}
'style'   
'straight' colormap only 'contour' contour lines only 'both' both colormap and contour lines 'fill' constant color between lines 'blank' just head and electrodes
{default   
'both'}
'numcontour'   
number of contour lines
{default   
6}
'shading'   
'flat','interp' {default = 'flat'}
'headcolor'   
Color of head cartoon {default black}
'electrodes'   
'on','off','labels','numbers'
'efontsize'   
detail
'electcolor'   
detail
'emarker'   
detail
'emarkersize'   
detail

Eloc_file format: chan_number degrees radius reject_level amp_gain channel_name
(Angle-0 =Cz-to-Fz; C3-angle =-90; Radius at edge of image = 0.5)
For a sample eloc file: >> topoplot example

Note: 1) topoplot only works when map limits are >= the max and min
interpolated data values.
2) topoplot will ignore any electrode with a position outside
the head (radius > 0.5). To make the head round, >> axis square

Authors: Andy Spydell & Colin Humphries, CNL / Salk Institute, Aug, 1996

See also: timtopo, envtopo

See the matlab file topoplot.m (may require other functions)

Back to functions