cellocator: Locate grid faces based on their positions on a map

View source: R/plot-2d-grid.R

cellocatorR Documentation

Locate grid faces based on their positions on a map

Description

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.


adamkocsis/icosa documentation built on Aug. 20, 2024, 1:35 a.m.