Learn R Programming

ERP (version 1.0.1)

erpplot: Plot of ERP curves.

Description

Wrapper for matplot (package graphics) to display ERP curves.

Usage

erpplot(dta, frames = NULL, ylim = NULL, ...)

Arguments

dta
Data frame containing the ERP curves: each column corresponds to a time frame and each row to a curve.
frames
Sequence of time frames. Default is NULL, in which case frames is just the sequence of intergers between one and the total number of frames.
ylim
Limits for the y-axis. Default is NULL (set into the function).
...
Graphical parameters (see par) and any further arguments of plot, typically plot.default, may also be supplied as arguments to this function. Hence, the high-level graphics control arguments described under par and the arguments to title may be suppli

Value

  • The function generates a plot, but does not return any other numerical outputs.

See Also

matplot

Examples

Run this code
data(erpcz)
erpplot(erpcz[,1:251],frames=seq(0,1001,4),xlab="Time (ms)",
   ylab="ERP",main="ERP at electrode CZ")

data(simerp)
erpplot(simerp[,1:251],frames=seq(0,1001,4),xlab="Time (ms)",
   ylab="ERP",main="Simulated ERP")

Run the code above in your browser using DataLab