Skip to content
Prev 4612 / 29559 Next

How to obtain individual values of transformed Ripley's function local L(r) at a fixed distance r?

On Thu, 4 Dec 2008, Ophelia Wang wrote:

            
Try the examples:

library(spatstat)
data(ponderosa)
X <- ponderosa
L <- localL(X)
r206 <- L$r[206]
L12a <- sapply(L, function(x) x[206])[1:108]
names(L12a) <- NULL
L12 <- localL(X, rvalue=r206)
all.equal(L12, L12a)

The values of L12 are in the same order as the points in X. I can't see 
that any re-ordering is occurring.

Hope this helps,

Roger