create_erpimage: Function for creating an ERP image

View source: R/epoch_images.R

create_erpimageR Documentation

Function for creating an ERP image

Description

Function for creating an ERP image

Usage

create_erpimage(data, electrode, smoothing, clim, interpolate = FALSE, na.rm)

Arguments

data

Data frame to be plotted. Requires an amplitude column.

electrode

electrode at which to generate an ERP image.

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

Turn on geom_raster() interpolation for smoother images.

na.rm

Remove trials with NA amplitudes after smoothing. Defaults to TRUE.


craddm/eegUtils documentation built on March 24, 2022, 9:17 a.m.