Applies a standard electrode montage (e.g., 10-20 system).
Usage
applyMontage(x, system = c("10-20", "10-10", "10-5"))References
Oostenveld R, Fries P, Maris E, Schoffelen JM (2011). "FieldTrip: Open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data." Computational Intelligence and Neuroscience, 2011, 156869.
See also
setElectrodePositions for custom positions,
getElectrodePositions for reading positions,
channelNames for channel labels,
setReference for reference electrode
Examples
pe <- PhysioExperiment(
assays = list(raw = matrix(rnorm(400), nrow = 100, ncol = 4)),
colData = S4Vectors::DataFrame(label = c("Fz", "Cz", "Pz", "Oz")),
samplingRate = 100
)
# Apply 10-20 system positions
pe <- applyMontage(pe, "10-20")
getElectrodePositions(pe)
#> channel x y z
#> 1 Fz 0 0.71 0.71
#> 2 Cz 0 0.00 1.00
#> 3 Pz 0 -0.71 0.71
#> 4 Oz 0 -1.00 0.00