allstats.sphwin | R Documentation |
Calculates the F, G, J, and K summary functions for a point pattern on a (subset of a) sphere. Returns them as a function array (of class "fasp"
, see fasp.object
).
allstats.sphwin(X, ..., dataname=NULL, verbose=FALSE)
X |
The observed point pattern, from which estimates of F(r), G(r), J(r) and K(r) will be
computed. An object of class |
... |
Optional arguments, passed to the summary functions |
dataname |
A character string giving an optional (alternative) name for the point pattern. |
verbose |
A logical value; if |
This computes four standard summary statistics for a point pattern: the empty space function F(r), nearest neighbour distance distribution function G(r), van Lieshout-Baddeley function J(r) and Ripley's function K(r). The real work is done by Fsphere
, Gsphere
, Jsphere
, and Ksphere
, respectively. Consult the help files for these functions for further information about the statistical interpretation of F, G, J and K.
If verbose
is TRUE
, then “progress reports” (just indications of completion) are printed out when the calculations are finished for each of the four function types.
The overall title of the array of four functions (for plotting by plot.fasp
) will be formed from the argument dataname
. If this is not given, it defaults to the expression for X
given in the call to allstats.sphwin
.
A list of length 4 containing the F, G, J and K functions respectively.
The list can be plotted directly using plot
(which dispatches to plot.solist
).
Each list entry retains the format of the output of the relevant estimating routine Fsphere
, Gsphere
, Jsphere
, or Ksphere
. Thus each entry in the list is a function value table (object of class "fv"
, see fv.object
).
1. Sizeable amounts of memory may be needed during the calculation
2. This function is the analogue for point processes on the sphere of the
function allstats
in spatstat
, which is the
corresponding function for point processes in R^2. Indeed, almost all of the elements of
the code for allstats.sphwin
and much of the help page have been taken from
allstats
with the permission of A. J. Baddeley. This
enables the code to be highly efficient and give corresponding output
to, and for the information on this help page to be consistent with
that for the function allstats
. It is hoped that this will
minimise or remove any confusion for users of both
spatstat and spherstat.
Adrian Baddeley <email: Adrian.Baddeley@curtin.edu.au>, Rolf Turner and Tom Lawrence <email:tjlawrence@bigpond.com>.
Fsphere
, Gsphere
, link{Jsphere}
, Ksphere
, allstats
, plot.solist
, plot.fv
, fv.object
.
sph <- sphwin(type="sphere") sph.pp <- rpoispp.sphwin(win=sph, lambda=10) sph.all <- allstats.sphwin(sph.pp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.