Last data update: 2014.03.03

R: Plot of ERP curves.
erpplotR Documentation

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 supplied to this function.

Value

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

Author(s)

David Causeur (Agrocampus, Rennes, France), Ching-Fan Sheu (National Cheng-Kung University, Tainan, Taiwan) and Mei-Chen Chu (National Cheng-Kung University, Tainan, Taiwan)

See Also

matplot

Examples

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")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(ERP)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ERP/erpplot.Rd_%03d_medium.png", width=480, height=480)
> ### Name: erpplot
> ### Title: Plot of ERP curves.
> ### Aliases: erpplot
> 
> ### ** Examples
> 
> 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")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>