loc2poly: loc2poly function

Description Usage Arguments Value See Also Examples

Description

Converts a polygon selected via the mouse in a graphics window into an polygonal owin object. (Make sure the x and y scales are correct!) Points must be selected traversing the required window in one direction (ie either clockwise, or anticlockwise), points must not be overlapping. Select the sequence of edges via left mouse button clicks and store the polygon with a right click.

Usage

1
loc2poly(n = 512, type = "l", col = "black", ...)

Arguments

n

the maximum number of points to locate

type

same as argument type in function locator. see ?locator. Default draws lines

col

colour of lines/points

...

other arguments to pass to locate

Value

a polygonal owin object

See Also

lgcpPredict, identify.lgcpPredict

Examples

1
2
## Not run: plot(lg) # lg an lgcpPredict object
## Not run: subwin <- loc2poly())

bentaylor1/lgcp documentation built on May 12, 2019, 2:09 p.m.