optemp: Plotting the optimum and cardinal temperatures for crops

View source: R/ambiental.R

optempR Documentation

Plotting the optimum and cardinal temperatures for crops

Description

Utility function for plotting graphs of thermal preferences for crops. It is necessary to inform the temperature values (minimum, average or maximum).

Usage

optemp(
  VAR,
  crop = NULL,
  verbose = FALSE,
  plot = TRUE,
  ylab = "Meteorological Atribute",
  xlab = "Days After Sowing"
)

Arguments

VAR

The column with air temperature values (minimum, average or maximum).

crop

Parameter to define the culture. Use 'soybean' for soybean crop, 'maize' for maize crop and 'trit' for wheat crop.

verbose

Logical argument. Runs the code silently if FALSE.

plot

Logical argument. Plot a graph of optimal temperatures if TRUE.

ylab

The name of the Y axis.

xlab

The name of the X axis.

Value

Returns the parameters of lower basal and optimum temperature, upper basal and optimum temperature, maximum temperature and average temperature.

Author(s)

Willyan Junior Adorian Bandeira

Ivan Ricardo Carvalho

Murilo Vieira Loro

Leonardo Cesar Pradebon

Jose Antonio Gonzalez da Silva

Examples

library(EstimateBreed)

data("clima")
clima <- get("clima")[1:150, ]

with(clima,optemp(TMED,crop="soybean"))

EstimateBreed documentation built on June 8, 2025, 10:53 a.m.