Skip to content

4. Plot

Diana Dima edited this page Mar 19, 2019 · 3 revisions

Scripts for plotting decoding results over time, in sensor space or on the template brain.

Functions

Static plots

plot_time_results Plots decoding results (e.g. accuracy) over time, with a shaded error bar/confidence interval. Significant segments can be highlighted. Can be called within a loop to plot multiple traces in one figure, with corresponding legends added.

plot_sens_searchlight_results Plots decoding results (e.g. accuracy) across channels using Fieldtrip's topoplotting function. Significant channels can be highlighted and searchlight accuracies are assigned to the corresponding centroids. Requires Fieldtrip neighbours structure (or output from get_sensor_info).

plot_source_results Plots decoding results (e.g. accuracy) on the template/inflated brain using Fieldtrip's source plotting function. To mask non-significant results, set those sources to NaN/0 or use ROI masking based on AAL atlas. Searchlight accuracies are assigned to the corresponding centroids or to the entire cluster (note: this can lead to some inaccuracies when overlapping searchlights are partially overwritten). Requires spatial information (cell array from get_source_info).

Movie plots

movie_sens_searchlight_results Plots sensor-space decoding results over time as a movie.

movie_source_results Plots source-space decoding results over time as a movie.

rotating_source_results Plots source-space decoding results on a revolving template brain (no time dimension).

Clone this wiki locally