Description Usage Arguments Value Author(s) See Also Examples
This functions is meant to be used with a plot obtained with erp
function. It reads the position of the graphics cursor when the (first) mouse button is pressed and returns the x-coordinates in ms.
1 | ms.locator(type = "p", startmsec, endmsec, lengthsegment, label=TRUE, n=512, ...)
|
type |
the type of plot. this parameter is passed to |
startmsec |
the time (in ms) of the start of the segment. |
endmsec |
the time (in ms) of the end of the segment. |
lengthsegment |
the length (in points) of the segment. |
label |
logical. If |
... |
further parameters to be passed to |
n |
The maximum number of points to locate. |
The time in ms associated with each located point is printed on the R
prompt.
Giorgio Arcara
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
data(erplistExample)
word=grandaverage("Exp1_word_subj", 1:20, erplist=erplistExample)
erp(word$F3, smo=0, col="blue", startmsec=-200, endmsec=1500, ylim=c(-6,6))
ms.locator(type="p", startmsec=-200, endmsec=1500, lengthsegment)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.