| ghat {dbmss} | R Documentation |
Estimation of the g function
Description
Estimates the g function
Usage
ghat(X, r = NULL, ReferenceType = "", NeighborType = "", CheckArguments = TRUE)
Arguments
X |
A weighted, marked, planar point pattern ( |
r |
A vector of distances. If |
ReferenceType |
One of the point types. Default is all point types. |
NeighborType |
One of the point types. Default is all point types. |
CheckArguments |
Logical; if |
Details
The computation of ghat relies on spatstat function sewpcf.
Value
An object of class fv, see fv.object, which can be plotted directly using plot.fv.
References
Stoyan, D. and Stoyan, H. (1994) Fractals, random shapes and point fields: methods of geometrical statistics. John Wiley and Sons.
See Also
Examples
data(paracou16)
autoplot(paracou16)
# Calculate g
r <- 0:30
(Paracou <- ghat(paracou16, r, "Q. Rosea", "V. Americana"))
# Plot
autoplot(Paracou)