geom_lm | R Documentation |
ordinary least squares model
geom_lm(formula = y ~ x, ...)
... |
library(ggplot2)
ggplot(cars) + aes(x = speed, y = dist) + geom_point() + geom_lm()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.