Description Usage Arguments Details Value Author(s) See Also Examples
Get the time value of one or more points of a time series by
clicking on the location using a mouse. This function was designed to get
the peaks of blinks and eye-movements, but could be used for any other type
of time series. See section Details
for more info on how to use it.
1 2 3 |
data |
A data frame containing the data. Measurements for each
channel/electrode should be arranged in columns with the
channel/electrode to which it pertains as their names (e.g., |
channel |
The channel from which time values for specific points on the time series are to be obtained. |
trials |
The trial(s) for which the function is to run through. Defaults
to |
trial.cn |
The quoted column name containing the trial information. Defaults to "Trial". |
time.cn |
The quoted column name containing the time information. Defaults to "Time". |
add.lines |
A list of column names and colors pairs of the lines to be
added to the plot. For example |
... |
Further arguments passed to |
The function is build on function locator
. As such,
get.peaks
is only supported on screen devices such as X11
,
windows
, and quartz
. On other devices the call will do
nothing.
For each one of the specified trials, the function plots the time course of
EEG activity for one of the specified trials. The user then points to the
desired location on the time series and clicks once with the left mouse
button to fetch the coordinates. More than 1 point can be gathered this
way. Once the user has finished selecting points, s/he presses on the right
mouse button to move on to the next trial and repeat these steps until all
of the trials specified in argument trials
have been processed. Note
that the y-coordinate of the selected points are irrelevant.
A named list of length equal to length(trials)
. Each list element contains the time values corresponding to the locations where the user clicked. The names are of the for trialXXX
, where XXX
is a specific trial.
Antoine Tremblay, Dalhousie University, trea26@gmail.com
identify
;
dev.capabilities
to see if it is supported;
locator
.
1 | ### See vignette for examples.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.