powered by
Regression line always passes through xbar and ybar
ols_reg_line(response, predictor)
response variable
explanatory variable
ols_reg_line(mtcars$mpg, mtcars$disp)
Run the code above in your browser using DataLab