The function returns which grid faces contain the points clicked in a plot.
Usage
cellocator(gridObj, n, output = "faces", ...)
Arguments
- gridObj
(trigrid
or hexagrid
) The grid object.
- n
(integer
) The number of points to be looked up.
- output
(character
) Type of output: "faces"
returns only the face names of the points, "full"
returns the coordinates as well.
- ...
Arguments passed to the locator
function.
Value
A vector of character
values, each corresponding to a face identifier.