linFit: Linear Fit and plot of data

Description Usage Arguments Examples

View source: R/linFit.R

Description

Fit a linear model to two variables, return basic output about the model, and plot the model.

Usage

1
2
linFit(x, y, xlab = deparse(substitute(x)),
  ylab = deparse(substitute(y)))

Arguments

x

a designation for a variable on the x-axis. Can be a vector or object.

y

a designation for a variable on the y-axis. Can be a vector or object.

xlab

optional. Text for x-axis title label.

ylab

optional. Text for y-axis title label.

#' @seealso expFit logisticFit tripleFit

Examples

1
2
3
data(wolf)
linFit(wolf$Year, wolf$Number)
linFit(wolf$Year, wolf$Number, xlab="Year", ylab="Number of Wolves")

MichaelJMahometa/OnRampsR documentation built on Feb. 12, 2020, 12:31 a.m.