Skip to contents

Creates comparative boxplots and jittered points for calibration and validation performance metrics. The function takes two data frames: one for calibration and one for validation—with a column run and additional performance metric columns. It reshapes the data, adds identifiers for type, and produces faceted plots for each metric.

Usage

plot_cal_val(cal_df, val_df)

Arguments

cal_df

A data frame containing calibration results. Must include a run column and one or more performance metric columns.

val_df

A data frame containing validation results. Must include a run column and one or more performance metric columns that match those in cal_df.

Value

A ggplot object showing faceted boxplots and jittered values for each performance metric, comparing calibration vs. validation results.

Examples

if (FALSE) { # \dontrun{
cal <- data.frame(run = 1:10, NSE = runif(10), KGE = runif(10))
val <- data.frame(run = 1:10, NSE = runif(10), KGE = runif(10))
plot_cal_val(cal, val)
} # }