plotting clusters
Ingrid Nieuwenhuis
ingrid.nieuwenhuis at FCDONDERS.RU.NL
Tue Aug 7 10:55:25 CEST 2007
Hi Sameer,
If I understand correctly you want to not plot data but just the sensors
that are significant in one color and the rest in another. If you look in
the help of the function topoplot.m (this function is called both by
topoplotER and topoplotTFR) you can see many extra options, including
highlighting options. If you want the sensors themselves to be colored and
no data underneath you could use a cfg like this:
Cfg.style = 'blank';
Cfg.highlight = electrode numbers you want to highlight
Cfg.hlcolor = color you want for the highlight
Cfg.ecolor = color you want for the other electrodes
If you call topoplotER or topopltTFR the cfg is passed on to topoplot.m, but
you could also call topoplot.m directly. But if you do that look in the help
of topoplot.m how it wants it's data.
You do have to give in some structure as data even if the style is blank,
but since it isn't plotted it doesn't matter what is in it.
On the FieldTrip page there is also a tutorial on plotting containing more
information:
http://www2.ru.nl/fcdonders/fieldtrip/doku.php?id=fieldtrip:documentation:tu
torial:plotting
Hope this is what you meant.
Ingrid
-----Original Message-----
From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
Of Sameer Walawalkar
Sent: Monday, August 06, 2007 10:39 PM
To: FIELDTRIP at NIC.SURFNET.NL
Subject: [FIELDTRIP] plotting clusters
Hello,
After doing clusterandanalysis, I want to plot the significant clusters
(say the most significant) in a binary fashion: such that that all
sensors in the significant clusters get a single colour highlighting (say
red) and the rest a different (say blue).
The current method I am using gives me plots which colour code the values
of significant clusters and also some contours over sensors which should
just be shut out by the masking.
I am using
plotdata=[];
mask=squeeze((clusrand.posclusterslabelmat==1) );
plotdata.maskedraweffect= mask; %clusrand.raweffect.*mask;
maxabs=max(abs(plotdata.maskedraweffect(:)));
plotdata.labelcmb =clusrand.labelcmb;
plotdata.dimord='chan_freq';
plotdata.freq = clusrand.freq
plotdata.label = clusrand.labelcmb(:,2);
figure
cfg=[];
cfg.xparam = 'freq';
cfg.zparam='maskedraweffect';
cfg.xlim = [min(clusrand.freq) max(clusrand.freq)];
cfg.layout = 'NM306planar.lay';
fg.colorbar='no';
clf;
topoplotER(cfg,plotdata);
Any suggestions about what I should be using?
Thanks in advance for your time.
best,
sameer
----------------------------------
The aim of this list is to facilitate the discussion between users of the
FieldTrip toolbox, to share experiences and to discuss new ideas for MEG
and EEG analysis. See also
http://listserv.surfnet.nl/archives/fieldtrip.html and
http://www.ru.nl/fcdonders/fieldtrip.
----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.
More information about the fieldtrip
mailing list