View source: R/ols.R View source: R/geom_lm_intercept.R
geom_lm_intercept | R Documentation |
Intercept
geom_lm_intercept(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
...
)
... |
library(ggplot2)
ggplot(cars) + aes(x = speed, y = dist) +
geom_point() + geom_lm() + geom_lm_intercept(color = "blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.