I am using "y 0+x" to fit a model without an intercept as I implement a linear model in R. Why does the line not pass through the origin when I use "abline(0, 2.08193)"? How can this be fixed?

x <- c

(2.9, 6.7, 8.0, 3.1, 2.0, 4.1, 2.2, 8.9, 8.1, 7.9, 5.7, 1.6, 6.6, 3.0, 6.3)

y <- c

(5.118289 17.168719 14.489016 7.340286 8.422882 7.994184 4.455667 17.529257 16.628453 17.076216 14.855261 2.596441 12.039215 6.684931 11.456480)

mod0 <- lm(formula = y ~ 0+x)

plot(x,y, xlab="x ", ylab="y ")

summary(mod0)

Discover the world of data with our Data Science Course and embark on a transformative journey towards analytical excellence.