View source: R/99_growth_curves.R
fn_lin | R Documentation |
A basic linear function of the form f(t) = m * t + b
, where m
is the slope and b
is the intercept.
fn_lin(t, m, b)
t |
A numeric vector of input values (e.g., time). |
m |
The slope of the line. |
b |
The intercept (function value when |
f(t; m, b) = m \cdot t + b
A numeric vector of the same length as t
, giving the linear function values.
library(flexFitR)
plot_fn(
fn = "fn_lin",
params = c(m = 2, b = 10),
interval = c(0, 108),
n_points = 2000
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.