Description Usage Arguments Details Value Author(s) Examples
grandaverage
plots the grand average waveform for each condition present in the
data frame you provide. A color-coded and labeled legend is generated with the plot
for ease of identification of each condition. The legend can be suppressed if it
interferes with the data presentation (i.e., hides part of the waveform).
1 | grandaverage(data, electrodes, window = NULL, lgnd = NULL)
|
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 |
window |
The beginning and end points of a time window of interest; this is different
from the beginning and ending times |
lgnd |
Whether or not a legend should appear on the plot. By default a legend
will appear, but can be suppressed by setting |
grandaverage
will return a plot of the grand average waveform for each
condition present in the data frame you provide. For ease of use, colors are
automatically assigned. The legend displays the value provided in the condition
argument of load.data
.
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.
A single plot of grand average waveforms for each condition. Includes a color-coded and labeled legend (that can be suppressed if specified). Also returns the raw waveform data for each condition.
Travis Moore
1 2 | # Create a plot of the grand average waveforms for each imported condition
grandaverage(ERPdata, electrodes = "V78", window = c(1000, 1500))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.