powered by
A basic linear function of the form f(t) = m * t + b, where m is the slope and b is the intercept.
f(t) = m * t + b
m
b
fn_lin(t, m, b)
A numeric vector of the same length as t, giving the linear function values.
t
A numeric vector of input values (e.g., time).
The slope of the line.
The intercept (function value when t = 0).
t = 0
$$ f(t; m, b) = m \cdot t + b $$
library(flexFitR) plot_fn( fn = "fn_lin", params = c(m = 2, b = 10), interval = c(0, 108), n_points = 2000 )
Run the code above in your browser using DataLab