surveillance (version 1.22.1)

intersectPolyCircle: Intersection of a Polygonal and a Circular Domain

Description

This is a unifying wrapper around functionality of various packages dealing with spatial data. It computes the intersection of a circular domain and a polygonal domain (whose class defines the specific method).

Currently the only supported class is "owin" from package spatstat.geom.

Usage

intersectPolyCircle(object, center, radius, ...)

# S3 method for owin intersectPolyCircle(object, center, radius, npoly = 32, ...)

Value

a polygonal domain of the same class as the input object.

Arguments

object

a polygonal domain of one of the supported classes.

center,radius,npoly

see discpoly.

...

potential further arguments (from the generic).

Author

Sebastian Meyer

See Also

discpoly to generate a polygonal approximation to a disc

Examples

Run this code
library("spatstat.geom")
plot(letterR)
plot(intersectPolyCircle(letterR, c(3,2), 1), add=TRUE, col=2, lwd=3)

Run the code above in your browser using DataLab