locator {base} | R Documentation |
locator
reads the position of the graphics cursor when
the (first) mouse button is pressed.
locator(n=512, type="n")
n |
the maximum number of points to locate. |
type |
One of "n" , "p" , "l" or
"o" . If "p" or "o" the points are
plotted; if "l" or "o" they are joined by lines. |
Unless the process
is terminated prematurely by the user (see below) at most
n
positions are determined.
The input process can be terminated prematurely by pressing any mouse button other than the first.
A list containing x
and y
components which are
the coordinates of the identified points.