Creates a ggplot2
figure showing the ERP at each electrode, with each
electrode placed according to its location on the scalp.
erp_scalp(data, ...)
# Default S3 method
erp_scalp(
data,
electrode = "electrode",
amplitude = "amplitude",
time = "time",
color = NULL,
colour = NULL,
size = 0.8,
linewidth = 0.8,
baseline = NULL,
show_guide = TRUE,
chan_info = NULL,
montage = NULL,
...
)
An eeg_epochs
or eeg_evoked
object
Various arguments passed to specific functions
Column name containing electrode names in data. Defaults to "electrode".
Column name containing amplitudes in data. Defaults to "amplitude".
Column name containing time in data. Defaults to "time".
Alias for colour
.
Variable to colour lines by. If no variable is passed, only one line is drawn for each electrode.
Size of the line(s) for the ERPs. Deprecated
Size of the line(s) for the ERPs.
Character vector of times to subtract for baseline correct.
Should be a guide showing the scale of the ERP plots be shown. Defaults to TRUE.
Pass channel information in the standard eegUtils
format
directly.
Name of an existing montage set. Defaults to NULL, which will attempt to us locations from the data. If none are found, it will attempt to use standard 10-05 locations.
Returns a ggplot2
plot object.
erp_scalp(default)
: Plot an ERP scalp map
interactive_scalp()
for interactive plots of ERPs in a scalp-based
layout.
Other scalp-based maps:
interactive_scalp()
,
topoplot()
erp_scalp(demo_epochs, montage = "biosemi64alpha")