identify.lgcpPredict: identify.lgcpPredict function

View source: R/lgcpMethods.R

identify.lgcpPredictR Documentation

identify.lgcpPredict function

Description

Identifies the indices of grid cells on plots of lgcpPredict objects. Can be used to identify a small number of cells for further information eg trace or autocorrelation plots (provided data has been dumped to disk). On calling identify(lg) for example (see code below), the user can click multiply with the left mouse button on the graphics device; once the user has selected all points of interest, the right button is pressed, which returns them.

Usage

## S3 method for class 'lgcpPredict'
identify(x, ...)

Arguments

x

an object of class lgcpPredict

...

additional arguments

Value

a 2 x n matrix containing the grid indices of the points of interest, where n is the number of points selected via the mouse.

See Also

lgcpPredict, loc2poly

Examples

## Not run: plot(lg) # lg an lgcpPredict object
## Not run: pt_indices <- identify(lg)

lgcp documentation built on Oct. 3, 2023, 5:08 p.m.