geom_equation: Adding model equation to ggplot. Wrapper around...

Description Usage Arguments Examples

View source: R/ggplot_functions.R

Description

Adding model equation to ggplot. Wrapper around ggpmisc::stat_poly_eq() with standard options for label

Usage

1

Arguments

formula

Model formula

...

Further parameters passed on to ggpmisc::stat_poly_eq() one of index or name.

Examples

1
2
3
4
5
my_formula <- y~x
ggplot(data, aes(x, y)) +
geom_point() +
geom_smooth(method = 'lm', formula = my_formula) +
geom_equation(formula = my_formula)

sitscholl/rebecka_package documentation built on Aug. 25, 2020, 4:20 a.m.