ms.locator {erpR} | R Documentation |
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.
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
locator
## 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)