logisticFit: Logistic Growth Fit and plot of data

Description Usage Arguments See Also Examples

View source: R/logisticFit.R

Description

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

Usage

1
2
logisticFit(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

See Also

linFit expFit tripleFit

Examples

1
2
3
4
data(wolf)
wolf$Time <- wolf$Year - min(wolf$Year)
logisticFit(wolf$Time, wolf$Number)
logisticFit(wolf$Time, wolf$Number, xlab="Years Since 1995", ylab="Number of Wolves")

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