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, yield_obs = NULL, bar_width = 0.5)

Arguments

sim_result

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

yield_obs

(optional) Data.frame with observed min, max, and mean yield values for each crop. Default yield = NULL.

bar_width

(optional) Value from 0 to 1 controls the width of the box in the boxplot. Default bar_width = 0.5.

Value

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