s2Gest: G-function for spherical point pattern

View source: R/s2Gest.R

s2GestR Documentation

G-function for spherical point pattern

Description

G-function for spherical point pattern

Usage

s2Gest(X, r = NULL, rmax = NULL, breaks = NULL, correction = NULL)

Arguments

X

Spherical point pattern of class s2pp

r

Optional. Vector of values for the argument r at which G(r) should be evaluated. Users are advised not to specify this argument; there is a sensible default. If necessary, specify rmax.

rmax

Optional. Maximum desired value of the argument r.

breaks

This argument is for internal use only.

correction

Optional. A character vector containing any selection of the options "none" and "border" (and possibly others in the future).

Value

An object of class "fv", see fv.object, which can be plotted directly using plot.fv.

Essentially a data frame containing columns

r

the vector of values of the argument r at which the function G has been estimated

theo

the theoretical value G(r) = 2 * pi * (1 - cos(r)) for a stationary Poisson process (where r is in radians)

together with columns named "none", and/or "border", according to the selected edge corrections. These columns contain estimates of the function G(r) obtained by the edge corrections named.

Examples

## Random poins on earth
X <- s2runif(200, region = s2earth())
## Estimate of G function up to distance 2000 km
G_X <- s2Gest(X, rmax = 2000)


spatstat/spatstat.sphere documentation built on Jan. 27, 2023, 2:59 a.m.