data(eeg)
head(eeg)
# Create icaOcularCorrection object
den = icaDEN.fnc(eeg, epoch.length = 192,
method = "all", electrodes = c("Fp1",
"Fp2", "AF3", "AF4", "F7", "F3", "Fz",
"F4", "F8", "FC5", "FC1", "FC2", "FC6",
"T7", "C3", "Cz", "C4", "T8", "CP5",
"CP1", "CP2", "CP6", "P7", "P3", "Pz",
"P4", "P8", "PO3", "PO4", "O1", "Oz",
"O2"), eogs = list(VEOG = c("BE", "TE"),
HEOG = c("LC", "RC")), threshold = 0.4,
n.comp = 16, ret.SAWK = TRUE,
verbose = TRUE)
names(den)
den$snr.ica
# Plot ICs
plotICs.fnc(den, epoch.length = 192, cor.only =
FALSE, whichEOG = c("VEOG", "HEOG"),
method = "all", dir.create.path = paste(getwd(),
"/figs/", sep = ""), dir.create.name = "IC.plots",
threshold = NA, nplots = c(2, 2), ask = TRUE,
plot.EOG = TRUE, pdf.it = FALSE, pdf.prefix =
"ICs_")Run the code above in your browser using DataLab