plot regression line in R
<p>I want to plot a simple regression line in R. I've entered the data, but the regression line doesn't seem to be right. Can someone help?</p>

<pre><code>x &lt;- c(10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120)
y &lt;- c(10, 18, 25, 29, 30, 28, 25, 22, 18, 15, 11, 8)
df &lt;- data.frame(x,y)
plot(y,x)
abline(lm(y ~ x))
</code></pre>

<p><a href="https://i.stack.imgur.com/FM24a.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/FM24a.jpg" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/nZvYQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nZvYQ.png" alt="enter image description here"></a></p>