Title: | Time-Series Models to the Crop Phenology |
---|---|
Description: | Fit a time-series model to a crop phenology data, such as time-series rice canopy height. This package returns the model parameters as the summary statistics of crop phenology, and these parameters will be useful to characterize the growth pattern of each cultivar and predict manually-measured traits, such as days to heading and biomass. Please see Taniguchi et al. (2022) <doi:10.3389/fpls.2022.998803> for detail. This package has been designed for scientific use. Use for commercial purposes shall not be allowed. |
Authors: | Shoji Taniguchi [aut, cre], The National Agriculture and Food Research Organization (NARO) [cph] |
Maintainer: | Shoji Taniguchi <[email protected]> |
License: | CC BY-NC 4.0 |
Version: | 0.0.2 |
Built: | 2025-02-16 02:45:11 UTC |
Source: | https://github.com/cran/phenolocrop |
Apply a time-series model, three-parameter logistic with the decrease in the late growth phase, to the time-series trait data. This function was originally developed for the time-series data of rice canopy height. Fitting the time-series model is done by the "two-step procedure". For more information, see Taniguchi et al. (2022).
logisLateDicr( dat, x, y, returnModels = FALSE, start = c(d0 = 50, r = 0.05, a = 1e-04), upper = c(d0 = 200, r = Inf, a = 1), lower = c(d0 = 0, r = 0, a = 0) )
logisLateDicr( dat, x, y, returnModels = FALSE, start = c(d0 = 50, r = 0.05, a = 1e-04), upper = c(d0 = 200, r = Inf, a = 1), lower = c(d0 = 0, r = 0, a = 0) )
dat |
data.frame including date and trait (e.g. canopy height). |
x |
Column name (character) for the date after sowing or plantingl. |
y |
Column name (character) for the trait. |
returnModels |
Logical value whether to return the time-series model object. Default is F. |
start |
Start values to estimate 'd0', 'r' and 'a'. Default is 'c(d0 = 50, r = 0.05, a = 0.0001)'. |
upper |
Upper bounds to estimate 'd0', 'r' and 'a'. Default is 'c(d0 = 200, r = Inf, a = 1)'. |
lower |
Lower bounds to estimate 'd0', 'r' and 'a'. Default is 'c(d0 = 0, r = 0, a = 0)'. |
logisLateDicr function returns the vector of estimated parameter values. If returnModels = TRUE, this function also returns the cubic polynomial regression object and logistic with the decrease in the late growth phase regression object.
S. Taniguchi et al., (2022) Prediction of heading date, culm length, and biomass from canopy-height-related parameters derived from time-series UAV observations of rice. Frontiers in Plant Science, 13:998803.
library(phenolocrop) riceCH_eg |> logisLateDicr("x", "height")
library(phenolocrop) riceCH_eg |> logisLateDicr("x", "height")
phenololine function returns the predicted values given the model name and model parameters.
phenololine(param, x, method)
phenololine(param, x, method)
param |
Vector of model parameter values. |
x |
Vector of time (e.g. vector of dates). |
method |
Character name of the time-series model. At present, only "logisLateDicr" is accepted. |
If method = "logisLateDicr", param should be the vector of c(K, d0, r, a, d1).
phenololine function returns the trait values given x.
library(phenolocrop) y <- riceCH_eg |> logisLateDicr("x", "height") |> phenololine(x = 1:160, method = "logisLateDicr") plot(1:160, y, type = "l")
library(phenolocrop) y <- riceCH_eg |> logisLateDicr("x", "height") |> phenololine(x = 1:160, method = "logisLateDicr") plot(1:160, y, type = "l")
This data was a simulated rice CH data to show the usage of this package.
riceCH_eg
riceCH_eg
Date of observation
CH
Cultivar ID
Dayes after sowing