"identify"(x, ..., labels=seq_len(nsegments(x)), n=nsegments(x), plot=TRUE)
"psp"
).
x
.
x
that were identified.
identify
for line segment pattern objects. The line segment pattern x
should first be plotted
using plot.psp
. Then identify(x)
reads the position of the graphics pointer each time the
left mouse button is pressed. It then finds
the segment in the pattern x
that is closest to the mouse position.
This segment's index will be returned as part of the value of the call.
Each time a segment is identified,
text will be displayed next to the point,
showing its serial number (or the relevant entry of labels
).
identify
,
identify.ppp
.