Description Usage Arguments Details Value Author(s) Examples
Same as, e.g., inside.owin
from package spatstat
and point.in.polygon
from package sp,
i.e., test whether points lie inside or outside a given polygon.
Actually, the method for "gpc.poly"
documented here internally uses
the point.in.polygon
function.
1 | inside.gpc.poly(x, y = NULL, polyregion, mode.checked = FALSE)
|
x,y |
numeric vectors of coordinates of the points to be tested.
The coordinates can be supplied in any form accepted by
|
polyregion |
an object of class |
mode.checked |
passed to |
The nodes and edges of (non-hole) polygons are treated as being inside. Points that fall strictly inside holes are treated as being outside of the polygon.
Logical vector whose i
th entry is TRUE
if the corresponding
point (x[i],y[i])
is inside polyregion
.
Sebastian Meyer
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.