[R] spatstat sub-selection

2010-06-05 Thread Tom_R
Fellow Users, In Spatstat, if you have a ppp object with, say 100 points, how do you create another ppp containing a random selection, N, of the original? You can tell the function 'rthin' to make a sub-selection of points, i.e. "every point is removed with probability 0.5" but you CAN'T set N e

[R] angles

2010-04-02 Thread Tom_R
Hi R users, I would like to construct a sort hybrid vector/scatter plot. My data is in the following format: 3-column x,y,z data-frame in which every row is a separate data-point. The x & y columns are coordinates, and the z column contains orientation data (range 0-180 degrees, with East=0 & N

Re: [R] Distances between two datasets of x and y co-ordinates

2010-03-17 Thread Tom_R
Hi, How do I use nncross to measure min distances between point patterns i,j, ENSURING each point in pattern i is only connected to a single partner point in pattern j ? I do realise that there are many possible pairings between the i-j point pairs... perhaps some average min distance for many