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.


neuroconductor/eegUtils documentation built on Feb. 3, 2023, 5:33 p.m.