Locate polygons on the current plot (using the
PolyData (optional) with
maximum number of points to locate.
This function allows its user to define polygons with mouse clicks on
the current plot via the
locator function. The
type are the usual parameters for the
locator function, but the user can specify them for each
SID) in a
pdata object exists, the function ignores columns other
n, then an outer boundary has
n > 0 and an
inner boundary has
n < 0.
On exit from
locator, suppose the user defined m
vertices for a given polygon. For that polygon, the
Y columns will contain
+1):n for outer-boundaries and
):1 for inner-boundaries. The
na.omit function can remove rows with
pdata object does not exist, the output contains only one
polygon with a
PID equal to 1. One inner-boundary polygon
POS goes from
1) can be generated by
supplying a negative
type = "o" or
type = "l", the function draws a line
connecting the last and first vertices.
projection attribute equal to the map's
projection. The function does not set the
Nicholas M. Boers, Associate Professor – Computer Science
MacEwan University, Edmonton AB
#--- define one polygon with up to 5 vertices on the current plot ## Not run: polys <- locatePolys(n = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.