powered by
Plot to demonstrate that the regression line always passes through mean of the response and predictor variables.
ols_plot_reg_line(response, predictor, print_plot = TRUE)
Response variable.
Predictor variable.
logical; if TRUE, prints the plot else returns a plot object.
TRUE
ols_plot_reg_line(mtcars$mpg, mtcars$disp)
Run the code above in your browser using DataLab