[Eeglablist] how to draw map figures using averaged data

Stephen Politzer-Ahles politzerahless at gmail.com
Tue Apr 2 02:58:55 PDT 2013


Hi Jianrong,

I guess there's some problem with your channel location file, as this same
code worked for me when I used one of my own files. But I can't tell what
the issue is without seeing the file; can you send it to me?

If your data imported in EEGLAB already have channel locations, there are
some other ways you could try getting this to work. The EEG.chanlocs
structure has the information you need, so rather than reading the
locations you can just put EEG.chanlocs in the spot where you currently
have 'PE_loc.txt', like in this example:

data = mean( mean( EEG.data(:,100:150,:), 3 ), 2); % average across epochs
and timepoints
figure; topoplot( data, EEG.chanlocs, 'electrodes', 'labels' );

Or, you can use the pop-up menu at "Plot ERP map series". (As far as I
know, this only allows you to plot single time points, not averages across
time points; but right now I'm at a computer with an older version of
EEGLAB on it, I'm not sure if this is changed in recent versions; and if
you can make a plot using this menu, you can use 'eegh' to see the command
and then you can adapt it).

Best,
Steve


On Tue, Apr 2, 2013 at 12:28 AM, Jianrong Jia <jianrongjia at hotmail.com>wrote:

> Hi Steve,
> I runed topoplot command like this:
> yyy=[1:1:64];
> topoplot(yyy,'PE_loc.txt','electrodes','labels') ;
> and recieved following error message:
> readlocs(): '' format assumed from file extension
> readlocs() warning: More columns in the input than expected.
>                     See >> help readlocs
> Undefined function or variable "eloc".
> Error in readlocs (line 458)
>    if isfield(eloc, 'sph_theta_besa')
> Error in topoplot (line 640)
>         [tmpeloc labels Th Rd indices] = readlocs( loc_file);
> The PE_loc.txt was exported by *Edit-Channel locations-Save(Other types)*of EEGLAB. I checked the PE_loc.txt and  be sure that it's
> channel corresponding to my data.
> Is anything wrong?
>
> Best.
> Jianrong
> ------------------ Original ------------------
> *From: * "Stephen Politzer-Ahles"<politzerahless at gmail.com>;
> *Date: * Tue, Apr 2, 2013 03:51 AM
> *To: * "Jianrong Jia"<jianrongjia at hotmail.com>; **
> *Cc: * "eeglablist"<eeglablist at sccn.ucsd.edu>; **
> *Subject: * Re: [Eeglablist] how to draw map figures using averaged data
>
> Hello Jianrong,
>
> Once you've imported the data into EEGLAB, you can use the topoplot()
> function to draw topographic maps of a particular time point, or an average
> over multiple timepoints.. See the topoplot() help information for more
> details and examples.
>
> Best,
> Steve
>
>
> On Sat, Mar 30, 2013 at 11:08 AM, Jianrong Jia <jianrongjia at hotmail.com>wrote:
>
>> Dear all
>> I have a grand averaged data has been exported by Analyzer 2(Brain
>> Products Corp.). It is only one second. How can i draw maps using this data.
>>
>> Jianrong
>>
>>
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to
>> eeglablist-unsubscribe at sccn.ucsd.edu
>> For digest mode, send an email with the subject "set digest mime" to
>> eeglablist-request at sccn.ucsd.edu
>>
>
>
>
> --
> Stephen Politzer-Ahles
> University of Kansas
> Linguistics Department
> http://people.ku.edu/~sjpa/
>



-- 
Stephen Politzer-Ahles
University of Kansas
Linguistics Department
http://people.ku.edu/~sjpa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20130402/d0133a82/attachment.html>


More information about the eeglablist mailing list