geom_smooth_lm: Adds a linear regression line to scatter plot and calls...

View source: R/geom_smooth_lm.R

geom_smooth_lmR Documentation

Adds a linear regression line to scatter plot and calls ggpubr to print the line equation and p value.

Description

see tidyExt vignette

Usage

geom_smooth_lm(SE = T, p.colour = "black", ...)

Value

Returns a ggplot.

Examples

require(ggplot2)
mpg |> ggplot2::ggplot(aes(cty,hwy)) + geom_point() + geom_smooth_lm()


bansell/tidyExt documentation built on July 12, 2024, 12:58 p.m.