Skip to content

4. Plot

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

Functions 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_temporal_generalization Plots temporal generalization accuracies as time by time heatmaps, outlining significant segments if required.

  • plot_sensor_results Plots decoding results (e.g. accuracy) as topographies on the MEG sensor map 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 (default) or to the entire cluster (note: the latter can lead to some inaccuracies when overlapping searchlights are partially overwritten). Requires spatial information (cell array from get_source_info).

Movie plots

  • movie_sensor_results Plots sensor-space decoding results over time as a movie using the template sensor map.

  • movie_source_results Plots source-space decoding results over time as a movie using the template brain surface.

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

Clone this wiki locally