erp_image: Plot ERP images

Description Usage Arguments Methods (by class) Examples

View source: R/epoch_images.R

Description

Plot an ERP image from a single electrode. Smooths over a series of trials in order to make across-trial patterns more apparent.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
erp_image(data, ...)

## Default S3 method:
erp_image(
  data,
  electrode = "Cz",
  time_lim = NULL,
  smoothing = 10,
  clim = NULL,
  interpolate = FALSE,
  ...
)

## S3 method for class 'eeg_epochs'
erp_image(
  data,
  electrode = "Cz",
  time_lim = NULL,
  smoothing = 10,
  clim = NULL,
  interpolate = FALSE,
  ...
)

## S3 method for class 'eeg_ICA'
erp_image(
  data,
  component = "Comp1",
  smoothing = 10,
  clim = NULL,
  interpolate = FALSE,
  ...
)

Arguments

data

Data frame to be plotted. Requires an amplitude column.

...

Other arguments passed to the method.

electrode

electrode at which to generate an ERP image.

time_lim

Time limits of plot

smoothing

Number of trials to smooth over when generating image

clim

Character vector of min and max values of plotting colour range. e.g. c(-5,5). Defaults to min and max.

interpolate

Perform interpolation to produce smoother looking plots. Defaults to FALSE.

component

eeg_ICA component to plot

Methods (by class)

Examples

1
2
3
erp_image(demo_epochs, electrode = "A31")
erp_image(demo_epochs, electrode = "A31", interpolate = TRUE)
erp_image(demo_epochs, electrode = "A31", smoothing = 5)

kusumikakd/EEG documentation built on June 28, 2020, 12:30 a.m.