individual: Return individual average raw data and plotted waveforms...

Description Usage Arguments Details Value Author(s) Examples

View source: R/Individual.R

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

1
individual(data, electrodes, plots = "n")

Arguments

data

A data frame in the format returned from load.data

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 load.data) do not have a header, you must include a capital "V" in front of the number and enclose each electrode in quotes. (For example, electrodes = "V78", or electrodes = c("V78", "V76").)

plots

Creates plots of individual averaged data in separate windows. By default, plots are suppressed, but can be activated by setting plots to "y".

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

1
2
3
# Return data frame of individual average data and create average waveform
# plots for each subject
individual(ERPdata, electrodes = "V78", plots="y")

erp.easy documentation built on May 2, 2019, 9:15 a.m.