Skip to contents

This function generates an interactive dygraph to visualize the results of an OAT analysis, comparing simulated data with observed data if provided.

Usage

plot_oat(sim, obs = NULL, variable, round_values = 3)

Arguments

sim

Object containing simulation data from SWATrunR.

obs

Optional dataframe for observed data with columns 'date' and 'value'. Default is NULL.

variable

Name of the variable for which OAT analysis results are plotted.

round_values

Number of decimal places to round parameter values. Default is 3.

Value

A dygraph object showing the OAT analysis results.

Examples

if (FALSE) {
plot_oat(sim_oat, obs = obs_data, variable = 'flo_day', round_values = 2)
}