Skip to content

5. Visualization

Kevin Tan edited this page Nov 17, 2022 · 1 revision

More documentation of functions to come.

High-level functions

Cortical meshes and electrodes

The function ec_plotCortex plots native or template cortical reconstructions from any hemisphere and angle. Electrodes and ICs can be overlaid with the d input: a table containing coordinates/vertices and other data for each electrode. Missing fields in d are filled with default values. The size, color & border of each electrode can be modified in d. For example, color could reflect activation magnitude or IC weights.

Summary statistics

The function ec_summaryStats_sbjCh plots summary statistics and single-trial timecourses across individual channels or ICs. The location of each electrode is displayed on each subject's native cortex. For ICs, the entire electrode montage is plotted on each subject's native cortical surface, colored by z-scored IC weights. The electrode with highest covariance for a given IC is highlighted with a green border.

Low-level functions

Get colormap from numeric values

See the function ec_colorbarFromValues