lm.line: Plot bounded straight line of results of 'lm()' fit

View source: R/plotting.R

lm.lineR Documentation

Plot bounded straight line of results of lm() fit

Description

Plot a straight line between lowest and highest values of x.vector based on lm() results, to use instead of abline(lm.output) which extends beyond the fitted data.

Usage

lm.line(x.vector, lm.results, ...)

Arguments

x.vector

values of x (that have been fitted to), fitted line will be bound by the range of x.vector

lm.results

output from an lm() fit, with intercept lm.results$coeff[1]

...

arguments to lines

Value

Adds a line to an existing plot

Author(s)

Andrew Edwards


andrew-edwards/sizeSpectra documentation built on June 28, 2023, 7:09 p.m.