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

erp_image(data, ...)

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

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

# S3 method for 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)

  • default: Default function operates on normal data frames

  • eeg_epochs: Create an erp_image from eeg_epochs

  • eeg_ICA: Plot component image from eeg_ICA

Examples

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