View source: R/ols-fitted-line-properties.R
ols_plot_reg_line | R Documentation |
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 |
Response variable. |
predictor |
Predictor variable. |
print_plot |
logical; if |
ols_plot_reg_line(mtcars$mpg, mtcars$disp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.