s2Gest | R Documentation |
G-function for spherical point pattern
s2Gest(X, r = NULL, rmax = NULL, breaks = NULL, correction = NULL)
X |
Spherical point pattern of class |
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 |
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 |
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.
## Random poins on earth X <- s2runif(200, region = s2earth()) ## Estimate of G function up to distance 2000 km G_X <- s2Gest(X, rmax = 2000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.