Skip to contents

This function generates boxplots to visualize Plant Heat Units (PHU) fractions, yields, and biomass over changes in days to maturity.

Usage

plot_phu_yld_bms(
  sim_result,
  x_label,
  yield = NULL,
  yield_min = NULL,
  yield_max = NULL
)

Arguments

sim_result

The simulation results containing PHU, yield, and biomass data.

x_label

Labels for the x-axis representing changes in days to maturity.

yield

(optional) The mean yield values for each crop. Default yield = NULL.

yield_min

(optional) The minimum observed yield values for each crop. Default yield_min = NULL

yield_max

(optional) The maximum observed yield values for each crop. Default yield_max = NULL

Value

A combined ggplot object showing boxplots for PHU fractions, yields, and biomass.

Examples

if (FALSE) {
plot_phu_yld_bms(ylds_phu_dmat, dmat_chg, yield_mean, yield_min, yield_max)
}