[R] nearest neighbours and their ID

2012-06-20 Thread Lucie V
Dear R users, I used nndist() to gain the distance of 2 nearest neighbours of the points in my dataset. Is there a way of getting the ID numbers of these nearest neighbours (along with their distances). The command I used: nn2 <- nndist(X2, k=1:2). This is the output of the nearest nei

[R] confidence envelope for pair correlation

2012-04-26 Thread Lucie V
Dear R users, I was just wondering if anyone would be able to advice me on how to create a confidence envelope on the graph when plotting a pair correlation function (or mark correlation function). Is the command qqenvl() or envl.plot() what I need or is it something completely dif

[R] Spatstat - coordinates in observation window

2012-03-16 Thread Lucie V
Dear R users, I wish to run spatial point pattern analysis (e.g. pair correlation function, mark correlation function) for which I need to create an observation window (window=owin) from which the spatial analysis is generated. The command I used to create this observation window as