Description Usage Arguments Details Value Note Author(s) Examples
Analysis: Normal model
1 2 3 4 5 6 7 8 9 10 11 12 | normal_model(
trat,
resp,
ylab = "Germination (%)",
xlab = expression("Temperature ("^"o" * "C)"),
theme = theme_classic(),
error = "SE",
legend.position = "top",
cardinal = 0,
r2 = "all",
scale = "none"
)
|
trat |
Numerical or complex vector with treatments |
resp |
Numerical vector containing the response of the experiment. |
ylab |
Variable response name (Accepts the expression() function) |
xlab |
treatments name (Accepts the expression() function) |
theme |
ggplot2 theme (default is theme_classic()) |
error |
Error bar (It can be SE - default, SD or FALSE) |
legend.position |
legend position (default is c(0.3,0.8)) |
cardinal |
defines the value of y considered extreme (default considers 0 germination) |
r2 |
coefficient of determination of the mean or all values (default is all) |
scale |
Sets x scale (default is none, can be "log") |
The model function for the normal model is:
f(x) = a ε^{-\frac{(x-b)^2)}{c^2}}
The function returns the coefficients and respective p-values; statistical parameters such as AIC, BIC, pseudo-R2; cardinal and optimal temperatures and the graph using ggplot2 with the equation.
if the maximum predicted value is equal to the maximum x, the curve does not have a maximum point within the studied range. If the minimum value is less than the lowest point studied, disregard the value.
Gabriel Danilo Shimizu
Leandro Simoes Azeredo Goncalves
1 2 3 4 | library(seedreg)
data("aristolochia")
attach(aristolochia)
normal_model(trat,resp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.