geom_lm_fitted: Fitted values along ols line, points

View source: R/ols.R View source: R/geom_lm_fitted.R

geom_lm_fittedR Documentation

Fitted values along ols line, points

Description

Fitted values along ols line, points

Usage

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

Arguments

...

Examples

library(ggplot2)
ggplot(cars) + aes(x = speed, y = dist) +
geom_point() + geom_lm() + geom_lm_fitted(color = "blue")

EvaMaeRey/ggxmean documentation built on April 10, 2024, 6:32 p.m.