Learn R Programming

erpR (version 0.2.0)

butterfly: ERP butterfly plot

Description

A butterfly plot of several ERP data frames.

Usage

butterfly(base, numbers, electrode = NULL, startmsec = - 200, endmsec = 1200, erplist = NULL, outline=NULL, out.col="black", add = FALSE, ...)

Arguments

base
a string indicating the beginning of the name of the data frame containing ERP data.
numbers
the numbers of the subjects to be averaged by the function.
electrode
the electrode to be plotted.
startmsec
the start time (in ms) of the ERP data frames. It can be a negative value, indicating the baseline time frame.
endmsec
the end time (in ms) of the ERP data frames.
erplist
a list containing the ERP data frames specified in base and numbers.
outline
the number of the subject to be outlined (it will be plotted with lwd=2).
out.col
the color of the outlined ERP waveform.
add
add the current plot to a previous plot
...
further parameters to be passed to link{erp}.

Value

A butterfly plot.

See Also

erp, erp.infl, scalp.infl

Examples

Run this code

data(ERPsets)
butterfly(base="Exp1_nonword_subj", numbers=1:20, electrode="Fp1", smo=0, 
startmsec=-200, endmsec=1500, erplist=ERPsets, outline=1, ylim=c(-20,20), out.col="red")


Run the code above in your browser using DataLab