Details
for more info on how to use it.get.peaks(data, channel, trials = NULL,
trial.cn = "Trial", time.cn = "Time",
add.lines = NULL, ...)
Fp1
,
Fp2
, AF3
, AF4
, ...).NULL
, which means that the function will run though all the
trials in the data frame.add.lines = list(c("MISC002",
"red"), c("MWD", "blue"))
. Defaults to NULL
.plot
, lines
, and
locator
.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.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.identify
;
dev.capabilities
to see if it is supported;
locator
.
### See vignette for examples.
Run the code above in your browser using DataLab