I have to separate two populations by a line in a scatterplot:
I would like find a threshold that separates the two populations. In @Waynes words, I would like to cluster the points into two categories, then calculate the line which best separates them. What is the easiest way to accomplish this in
R? I've tried the Otsu algorithm on the raw data, but I don't know if this one is robust enough for other datasets.
Edit: I don't know which dot belongs to which population. The data is not multivariate, I only have an X and a Y value, as seen in the dotplot.