This function generates an interactive plot of calibration data based on the provided data.
Arguments
- df
Dataframe with formatted data (requires "Station", "DATE", " Variables", and "Values" columns). Data can be loaded with
load_template
function using 'xlsx' template file.- stations
Character vector listing stations to be selected for the figure.
- variables
(Optional) Character vector specifying which parameters should be included in the figure. Default
variables = NULL
, all available variables will be plotted.
Examples
if (FALSE) {
# Example using calibration data
temp_path <- system.file("extdata", "calibration_data.xlsx", package = "SWATprepR")
cal_data <- load_template(temp_path)
plot_cal_data(cal_data$data, stations = c("1", "2", "3", "10"), variables = c("PT", "NT"))
}