quick_lm: Fit and plot a two-term linear model quickly

View source: R/plot_tools.R

quick_lmR Documentation

Fit and plot a two-term linear model quickly

Description

Fit and plot a two-term linear model quickly

Usage

quick_lm(formula, data, ...)

Arguments

formula

(Formula) A two-term formula for both the linear model and the plot.

data

(Dataframe) The dataframe to use for fitting and plotting.

...

(Args) Arguments that will be passed to plot().

Value

A plot that shows a fit line and lists intercept, slope, and r-square, adjusted r-squared, etc. Invisibly returns the lm fit object so that it can be inspected.

Authors

Examples

quick_lm(Petal.Length ~ Sepal.Length, iris)


DesiQuintans/desiderata documentation built on April 9, 2023, 5:43 a.m.