individual {erp.easy} | R Documentation |
Return individual average raw data and plotted waveforms (optional) for all loaded conditions
Description
individual
plots individual, averaged waveforms for each condition present in the
data frame you provide. Separate plots for each individual can be generated, if specified.
Usage
individual(data, electrodes, plots = "n")
Arguments
data |
A data frame in the format returned from |
electrodes |
A single value or concatenation of several values (to be averaged)
indicating which electrodes to include in generating the plot. At this time, if the
raw data files imported using |
plots |
Creates plots of individual averaged data in separate windows. By default,
plots are suppressed, but can be activated by setting |
Details
individual
will generate individual average data and separate plots of
averaged waveforms (optional) for each subject in the data frame you provide. Raw data are
organized in columns by subject and condition. Plots will be generated by setting
plots = "y"
.
Single electrodes can be passed to the package functions, or several electrodes can be provided (i.e., when using dense arrays) and those electrodes will be averaged together as a single electrode.
Value
Data frame of individual average data for each subject in each condition.
If plot = "y"
, then multiple plots (1 per subject) will also be generated.
Author(s)
Travis Moore
Examples
# Return data frame of individual average data and create average waveform
# plots for each subject
individual(ERPdata, electrodes = "V78", plots="y")