Label ols linear model intercept

geom_lm_intercept_label(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Arguments

...

Value

Examples

library(ggplot2) ggplot(cars) + aes(x = speed, y = dist) + geom_point() + geom_lm() + geom_lm_intercept(color = "blue") + geom_lm_intercept_label(hjust = 0)