Is it possible to create a dummy or continuous variable which separates the points into two separate groups which show significant slope differences? In effect, I would like to know whether a "moderator" variable exists or not.
x = rnorm(400)
y = 0.6 * x + rnorm(400, 0, 1)
rn = 1:length(x)
df = data.frame(x, y, rn)

You can try something like this