Quickie ERP Plots
Because clicking things on Excel takes too long and is prone to human error
Purpose: Visualize ERP waveforms after processing on Net Station and before performing statistical analyses
Input: Tab-delimited text/xls files exported from Net Station 5
Output: An overplot of ERPs over a specified montage
To do
- Open
net station plots.Rproj
on RStudio - Source/Run the three R scripts in the sequence defined below
Script sequence
- read.data.R
- averages.R
- waveplots.R
Good to know
- Lines with three pound signs
###
indicate input fields - In the example, each text file is a header-less matrix representing voltage measures from 129 channels over a time window spanning 200 ms prestimulus to 800 ms poststimulus, in one experimental condition. There are four conditions.
- This project does not do stats. Just viz.
- Code will keep changing.
Update as of 6/23/16
- New line of code to direct R to appropriate folder containing raw textouts
- Added red vertical dotted lines to indicate time window in final plot.
- Directed R to spit out plot image to a subfolder