ghat(X, r = NULL, ReferenceType = "", NeighborType = "", CheckArguments = TRUE)
wmppp.object
).NULL
, a sensible default value is chosen (512 intervals, from 0 to half the diameter of the window) following spatstat
.TRUE
, the function arguments are verified. Should be set to FALSE
to save time in simulations for example, when the arguments have been checked elsewhere.ghat
relies on spatstat function sewpcf
.gEnvelope
data(paracou16)
plot(paracou16)
# Calculate g
r <- 0:30
(Paracou <- ghat(paracou16, r, "Q. Rosea", "V. Americana"))
# Plot
plot(Paracou)
Run the code above in your browser using DataLab