Learn R Programming

virtualspecies (version 1.6)

linearFun: Linear function

Description

A simple linear function of the form $$ax+b$$

Usage

linearFun(x, a, b)

Value

a numeric value or vector resulting from the function

Arguments

x

a numeric value or vector

a

a numeric value or vector

b

a numeric value or vector

Author

Boris Leroy leroy.boris@gmail.com

Maintainer: Boris Leroy leroy.boris@gmail.com

See Also

logisticFun, quadraticFun

Examples

Run this code
x <- 1:100
y <- linearFun(x, a = 0.5, b = 0)
plot(y ~ x, type = "l")

Run the code above in your browser using DataLab