.BG
.FN locator
.TL
Get Coordinates from Plot
.CS
locator(n=500, type="n")
.AG n
the maximum number of points to identify.
.AG type
character describing interactive drawing option.
If `type' is "n", nothing is drawn.
Values of "p", "l", "b", and "o" plot points at the digitized
coordinates, lines connecting them, both points
and lines, or overplotted points and lines.
.RT
list containing vector components `x' and `y' which
give coordinates for each point.
The length of these vectors is at most `n',
but can be shorter if the user terminates
graphic input after fewer than `n' points are given.
.PP
See the individual device documentation for the protocol on the
device for identifying points and terminating graphic input.
.EX
# user points at outlier which is then labelled
text(locator(1),"outlier")

lines(locator( ))    # input a number of points, connect with line
locator(type="l")    # alternative
.KW iplot
.WR
