ghat | R Documentation |
Estimates the g function
ghat(X, r = NULL, ReferenceType = "", NeighborType = "", CheckArguments = TRUE)
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 |
The computation of ghat
relies on spatstat function sewpcf
.
An object of class fv
, see fv.object
, which can be plotted directly using plot.fv
.
Stoyan, D. and Stoyan, H. (1994) Fractals, random shapes and point fields: methods of geometrical statistics. John Wiley and Sons.
gEnvelope
data(paracou16)
autoplot(paracou16)
# Calculate g
r <- 0:30
(Paracou <- ghat(paracou16, r, "Q. Rosea", "V. Americana"))
# Plot
autoplot(Paracou)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.