Assigns 3D electrode positions to channels.
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
getElectrodePositions for reading positions,
applyMontage for standard electrode layouts,
channelInfo for full channel metadata
Examples
pe <- PhysioExperiment(
assays = list(raw = matrix(rnorm(300), nrow = 100, ncol = 3)),
colData = S4Vectors::DataFrame(label = c("Fz", "Cz", "Pz")),
samplingRate = 100
)
# Set electrode positions
positions <- data.frame(
x = c(0, 0, 0),
y = c(0.71, 0, -0.71),
z = c(0.71, 1, 0.71)
)
pe <- setElectrodePositions(pe, positions)