Learn R Programming

lgcp (version 1.8)

identify.lgcpPredict: 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 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

Run this code
# NOT RUN {
plot(lg)
# }
# NOT RUN {
 # lg an lgcpPredict object
# }
# NOT RUN {
pt_indices <- identify(lg)
# }

Run the code above in your browser using DataLab