butterfly plots all individual waveforms for the condition specified by the
stim argument (i.e., a butterfly plot). The grand average waveform is also plotted,
using a red line.
butterfly(data, electrodes, stim = 1)load.dataload.data) do not have a header, you
must include a capital "V" in front of the number and enclose each electrode in quotes.
(For example, electrodes = "V78", or electrodes = c("V78", "V76").)load.data. The plot title will specify
the name of the condition to avoid confusion.stim.
butterfly(ERPdata, electrodes = "V78", stim = 1)
Run the code above in your browser using DataLab