| Type: | Package |
| Title: | Degree-Day Phenology Calculator ('shiny' Application) |
| Version: | 0.1.0 |
| Description: | Provides a 'shiny' application to compute daily and cumulative degree-days from minimum and maximum temperatures using average, single triangle, and single sine methods, with optional upper temperature thresholds. The application maps cumulative thermal accumulation to user-defined developmental stage thresholds and supports exporting tabular and graphical outputs. The degree-day approach follows assumptions described by Higley et al. (1986) <doi:10.1093/ee/15.5.999>. |
| License: | MIT + file LICENSE |
| Encoding: | UTF-8 |
| RoxygenNote: | 7.3.3 |
| Depends: | R (≥ 4.1) |
| Imports: | shiny, DT, ggplot2 |
| Suggests: | testthat (≥ 3.0.0) |
| Config/testthat/edition: | 3 |
| URL: | https://github.com/almarazkrae-4081/DegreeDayCalc |
| BugReports: | https://github.com/almarazkrae-4081/DegreeDayCalc/issues |
| NeedsCompilation: | no |
| Packaged: | 2026-02-13 06:04:16 UTC; rosy_ |
| Author: | Victor Manuel Almaraz Valle
|
| Maintainer: | Victor Manuel Almaraz Valle <almarazkrae@gmail.com> |
| Repository: | CRAN |
| Date/Publication: | 2026-02-17 21:40:14 UTC |
DegreeDayCalc
Description
Launch the DegreeDayCalc Shiny application for degree-day phenology calculations and visualization of cumulative thermal requirements across life stages.
Usage
DegreeDayCalc()
Value
Runs a Shiny application in the default browser (or viewer).
Examples
if (interactive()) {
DegreeDayCalc()
}
Compute degree-days from daily minimum and maximum temperatures
Description
Calculates daily degree-days (thermal units) from Tmin and Tmax using several common methods (average, triangular, sine). Optionally, an upper threshold (Tupper) can be applied in methods supporting it.
Usage
degree_days(
Tmin,
Tmax,
Tbase,
Tupper = NULL,
method = c("average", "average_cut", "triangle", "triangle_upper", "sine",
"sine_upper")
)
Arguments
Tmin |
Daily minimum temperature (°C). |
Tmax |
Daily maximum temperature (°C). |
Tbase |
Base (lower developmental threshold) temperature (°C). |
Tupper |
Optional upper temperature threshold (°C). Required for
|
method |
Degree-day method. One of |
Value
A numeric value (degree-days) rounded to 3 decimals.
Run the DegreeDayCalc Shiny application (internal helper)
Description
Internal helper that launches the bundled Shiny app.
Usage
run_app(...)
Arguments
... |
Passed to shiny::runApp(). |