
Save Calibration and Validation Plot
save_cal_val_plot.Rd
Creates and saves a plot comparing observed and simulated runoff over the calibration and validation periods. The plot includes performance metrics such as KGE, NSE, and percent bias, and displays them for each period.
Arguments
- file
A string specifying the filename for the saved plot (e.g.,
"cal_val.pdf"
).- BasinObs
A data frame containing observed runoff and corresponding dates, typically from
load_meteo_data
. Must include columnsQmm
andDatesR
.- Qsim
A numeric vector of simulated runoff values.
- split_indices
A list of indices from
split_data_set
, containing elementsind_cal
andind_val
for calibration and validation periods, respectively.
Details
The function generates a two-panel plot showing observed and simulated runoff for both calibration
and validation periods. It also computes and displays selected validation metrics using
calc_validation_results
. The metrics are shown as annotations on the plot.