POP_HEADPLOT Plot one or more spherically-splined EEG field maps using a semi-realistic 3-D head model. Requires a spline file, which is created first if not found. This may take some time, but does not need to be done again for this channel locations montage. A wait bar will pop up to indicate how much time remains.


Usage:

To open input GUI: >> EEGOUT = pop_headplot( EEG, typeplot)

To run as a script without further GUI input: >> EEGOUT = pop_headplot( EEG, typeplot, latencies/components, title, rowscols, 'key', 'val' ...);

Required Inputs:
EEG   
EEG dataset structure
typeplot   
1=channel, 0=component {Default: 1} Required Inputs to bypass input GUI
latencies/components   
If channels, array of epoch mean latencies (in ms), Else, for components, array of component indices to plot.

Optional inputs:
title   
Plot title
rowscols   
Vector of the form [m,n] where m is total vertical tiles and n horizontal tiles per page. If the number of maps exceeds m*n, multiple figures will be produced {def|0 -> 1 near-square page} Optional 'Key' 'Value' Paired Inputs
'setup'   
['name_of_file_to_save.spl'] Make the headplot spline file
'load'   
['name_of_file_to_load.spl'] Load the headplot spline file
'colorbar'   
['on' or 'off'] Switch to turn colorbar on or off. {Default: 'on'}
others...   
All other key-val calls are passed directly to headplot. See >> help headplot

Output:
EEGOUT   
EEG dataset, possibly with a new or modified splinefile.

Note: A new figure is created only when the pop_up window is called or when
several channels/components are plotted. Therefore you may call this
command to draw single 3-D topographic maps in an existing figure.
Headplot spline file is a matlab .mat file with the extension .spl.

Author: Arnaud Delorme, CNL / Salk Institute, 20 March 2002

See also: headplot(), eegplot()

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

Back to functions