ggplot() from ggplot2 in R
Perhaps we’d prefer a simple linear regression line to highlight any first order trends. We can do this by specifying *** = "***" to geom_smooth().
g <- ggplot(...)
g + geom_point() + geom_smooth(*** = "***")
Perhaps we’d prefer a simple linear regression line to highlight any first order trends. We can do this by specifying method = "lm" to geom_smooth().
g + geom_point() + geom_smooth(method = "lm")