Description Usage Arguments Value Examples
A sandbox to simulate a growth process, beginning with a low initial lag period, through an exponential growth phase, to a higher final maximal asymptote. The function is based upon the Gompertz growth model. Random values for y are created using the equation: 'y = ylo + d*exp(-exp(((k*exp(1))/d)*(lambda-x)+1)) + rnorm(length(x), 0, sd)'. The regression formula is: 'y ~ ylo + d*exp(-exp(((k*exp(1))/d)*(lambda-x) + 1))'.
1 |
x |
A vector of linear scale values, such as time. |
k |
The maximal growth rate, approximately the slope of the l ine in the growth phase. |
ylo |
The lowest value of y, or a starting value. |
d |
The difference between ylo and the highest value of y. |
lambda |
The lag period, in units of the x scale |
sd |
The standard deviation of the replicates. |
reps |
The number of replicates per value of x. |
ggplot, data
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.