This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: tree.
identify(x, ...) identify.default(x, y, labels = seq(along = x), n = length(x), plot = T, atpen = T, offset = 0.5, pts, tolerence = 0.5, ...)
Graphical parameters may also be supplied as arguments to this function (see par).
When using the X11 driver under the X Window System, a point is identified by positioning the cursor over the point and pressing the left button. To exit identify press the middle button (both buttons on a two button mouse) while the cursor is in the graphics window. The same procedure is used under the suntools driver. This function may also be used with the "tek" drivers.
Some devices that do not allow interaction prompt you for an x,y pair.
The nearest point to the locator position is identified. In case of ties, the earliest point is identified.
identify(x, y, z) # plot z values when x,y points identified bad <- identify(x, y, plot = FALSE) xgood <- x[-bad] # eliminate identified "bad" points ygood <- y[-bad] # from x and y # use the pts argument and locator to identify all points at once x <- c(1, 2, 3) y <- c(3, 4, 5) plot(x, y) pts <- locator() # click once on each of the three points identify(x, y, pts = pts) # all the points on the plot are labelled # at once