Re: [R-sig-Geo] Comparing distance among point pattern events

2020-01-09 Thread ASANTOS via R-sig-Geo
Dear R-Sig-Geo Members, I have the three hypothetical point process situation (A, B and C) and my question is: What point distribution (B or C) is more close to A? For this problem, I make a simple example: library(spatstat) set.seed(2023) A <- rpoispp(30) ## First event B <- rpoispp(30) ##

Re: [R-sig-Geo] Comparing distance among point pattern events

2019-11-22 Thread Sarah Goslee
Hi, Great question, and clear example. The first problem: ACd<-pairdist(A) instead of ACd <- pairdist(AC) BUT pairdist() is the wrong function: that calculates the mean distance between ALL points, A to A and C to C as well as A to C. You need crossdist() instead. The most flexible approach