2
$\begingroup$

My problem is the very idea of how to start the analysis of 2D point patterns, specifically how to find linear trends within their spatial pattern.

I have XY data points which are organized like in the plot, which I have manually marked with red lines in order to highlight what should be determined:

enter image description here

This post suggests the use of kernel density estimation (which is the usual method I guess), but I would like to find out if there is any simpler way of doing this, avoiding the use of spatial statistics. R solution is preferred.

UPDATE:

When using the solution suggested by whuber (Hough transform) I get these lines as the most frequent ones in my scatterplot:

enter image description here

Obviously these are not the lines I was searching for, but nevertheless it would be interesting to determine the very points that lie on the red line, for example.

$\endgroup$
4
  • $\begingroup$ I'm not sure why the "This should be found" line doesn't continue to the bottom right of the graph. $\endgroup$
    – Roland
    Commented Aug 29, 2014 at 12:29
  • $\begingroup$ It can continue in a linear regression fashion I guess, but the point is that only the points that are directly on it should be detected. If too long it may include more points further down to the bottom right. $\endgroup$ Commented Aug 29, 2014 at 12:57
  • $\begingroup$ For additional solutions, please see stats.stackexchange.com/questions/109819 and stats.stackexchange.com/questions/33078. $\endgroup$
    – whuber
    Commented Aug 29, 2014 at 14:40
  • $\begingroup$ Yes I have looked at the solutions proposed, but I`m still slightly unsure how to detect precisely which points share a linear trend, since they may not lie in a perfectly straight line? Otherwise the usage of Hough transform is a great idea. Thanks. $\endgroup$ Commented Aug 31, 2014 at 8:25

0

Browse other questions tagged or ask your own question.