c_geom_lm: A geom that draws the simple linear ols model

Description Usage Arguments Examples

View source: R/c_geom_lm.R

Description

A geom that draws the simple linear ols model

Usage

1

Arguments

...

all the geom_point arguments

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# without the function
library(ggplot2)
ggplot(data = cars) +
 aes(x = speed, y = dist) +
 geom_point() +
 geom_smooth(method = lm, se = FALSE)

# the function
c_geom_lm

# using the function
ggplot(data = cars) +
 aes(x = speed, y = dist) +
 geom_point() +
 c_geom_lm()

EvaMaeRey/ggextend documentation built on Dec. 17, 2021, 7:24 p.m.