loc2poly | R Documentation |
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.
loc2poly(n = 512, type = "l", col = "black", ...)
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 |
a polygonal owin object
lgcpPredict, identify.lgcpPredict
## Not run: plot(lg) # lg an lgcpPredict object
## Not run: subwin <- loc2poly())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.