lm_eqn: Make linear fit equation string

View source: R/benchmarking.R

lm_eqnR Documentation

Make linear fit equation string

Description

Makes a string (form: y = ax + b, r^2 = r^2) for putting on plots from a linear model (lm)

Usage

lm_eqn(linear.model)

Arguments

linear.model

An object of class lm, should have been made with a simple y ~ x formula

Details

Make sure the model is y ~ x or this function doesn't really make sense

Value

A character string

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.