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) A data frame with observed minimum, maximum, and mean yield values for each crop. Default is NULL. No data is provided. If provided, the data frame should contain the following columns: plant_name, yield_min, yield_max, and yield_mean.

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.