Learn R Programming

erpR (version 0.2.0)

erp.infl: inspect the influence of a subject on the average (single electrode).

Description

This function returns a diagnostic plot to investigate the influence of a given ERP data frame on the grandaverage of a series of ERP data frames. A GUI is provided to explore the effect of removing a data frame (that is expected to be associated with a Subject) on the grandaverage. Two plots are superposed: the original grandaverage and the average removing the subject selected via the GUI.

Usage

erp.infl(base, numbers, electrode, erplist=NULL, startmsec=-200, endmsec=1200, smo=NULL, outnumber=1, lwd=1, lty=1, ...)

Arguments

base
a string indicating the beginning of the name of the data.frame containing the ERP data.
numbers
the numbers of the subjects to be averaged by the function.
electrode
the electrode to be plotted.
erplist
a list containing the ERP data frames specified in base and numbers.
startmsec
the start time (in ms) of the ERP vector.
endmsec
the end time (in ms) of the ERP vector.
smo
the smoothing parameter to apply (see smooth.spline). Default is NULL and no smoothing is applied.
outnumber
The number of the subject that will be initially removed from the averaged (this value could be changed also via the GUI).
lwd
line width.
lty
line type.
...
further parameters to be passed to erp function called within erp.infl.

Value

The function returns a plot of a single electrode showing the influence of a subject on the grandaverage.

Details

The function requires the package rpanel

See Also

erp, link{scalp.infl}

Examples

Run this code

data(ERPsets)

erp.infl(base="Exp1_word_subj", numbers=1:20, electrode="OZ", 
startmsec=-200, endmsec=1500, erplist=ERPsets)

# Notice that Subject 1 is clearly particularly influential
# for the average on OZ.



Run the code above in your browser using DataLab