Maps channel labels to standard electrode positions from a known montage
system (10-20, 10-10, BioSemi64) or from a custom positions data.frame.
Sets pos_x, pos_y, pos_z columns in colData for use
by interpolation, topographic mapping, and source localization functions.
Usage
eegMontage(
x,
system = c("10-20", "10-10", "biosemi64", "custom"),
positions = NULL
)Examples
pe <- make_eeg(n_time = 5000, n_channels = 19, sr = 500)
pe <- eegMontage(pe, system = "10-20")
head(SummarizedExperiment::colData(pe))
#> DataFrame with 6 rows and 5 columns
#> label type pos_x pos_y pos_z
#> <character> <character> <numeric> <numeric> <numeric>
#> 1 Fp1 EEG -0.309 0.951 0.000
#> 2 Fp2 EEG 0.309 0.951 0.000
#> 3 F7 EEG -0.809 0.588 0.000
#> 4 F3 EEG -0.545 0.809 0.225
#> 5 Fz EEG 0.000 0.891 0.454
#> 6 F4 EEG 0.545 0.809 0.225