Creates a scatter plot with linear regression line and displays model statistics (R², intercept, slope, and p-value) in the title.
Examples
if (FALSE) { # \dontrun{
model <- lm(mpg ~ wt, data = mtcars)
ggplotRegression(model)
} # }
Creates a scatter plot with linear regression line and displays model statistics (R², intercept, slope, and p-value) in the title.
if (FALSE) { # \dontrun{
model <- lm(mpg ~ wt, data = mtcars)
ggplotRegression(model)
} # }