lm_eq: lm_eq function

View source: R/lm_eq.R

lm_eqR Documentation

lm_eq function

Description

This function allows you to output the equation as well as the adjusted R-squared, for a linear model in a ggplot.

Usage

lm_eq()

Examples

## Not run: 
library(ggplot2)

cars %>%
ggplot(aes(x = speed, y = dist)) +
geom_smooth(method = "lm") +
lm_eq()

## End(Not run)

vrognas/vmisc documentation built on Oct. 27, 2023, 8:09 a.m.