Learn R Programming

spatstat.explore (version 3.7-0)

Ksector: Sector K-function

Description

A directional counterpart of Ripley's \(K\) function, in which pairs of points are counted only when the vector joining the pair happens to lie in a particular range of angles.

Usage

Ksector(X, begin = 0, end = 360, ...,
        units = c("degrees", "radians"), 
        r = NULL, breaks = NULL, rmax=NULL, 
        correction = c("border", "isotropic", "Ripley", "translate"),
        domain=NULL, ratio = FALSE, verbose=TRUE)

Arguments

Value

An object of class "fv" containing the estimated function.

Details

This is a directional counterpart of Ripley's \(K\) function (see Kest) in which, instead of counting all pairs of points within a specified distance \(r\), we count only the pairs \((x_i, x_j)\) for which the vector \(x_j - x_i\) falls in a particular range of angles.

This can be used to evaluate evidence for anisotropy in the point pattern X.

See Also

Kest

Examples

Run this code
 K <- Ksector(swedishpines, 0, 90)
 plot(K)

Run the code above in your browser using DataLab