Skip to contents

plot_hru_pw_day plots daily time series of variables from the output file hru_pw_day

Usage

plot_hru_pw_day(sim_verify, hru_id, var, years = 1900:2100, add_crop = TRUE)

Arguments

sim_verify

Simulation output of the function run_swat_verification(). To plot the heat units at least the output option outputs = 'mgt' must be set in run_swat_verification()

hru_id

Numeric vector with HRU ids for which variables should be plotted

var

Character vector that defines the variable names that are plotted

years

Years of the simulated data for which varaibles are plotted.

add_crop

TRUE adds subplot with growing periods of crops in plotted HRUs.

Value

Returns a ggplot or patchwork ggplot of daily hru_pw output variables

Examples

if (FALSE) { # \dontrun{
plot_hru_pw_day(sim_nostress, hru_id = 1, var = c('lai', 'bioms'), add_crop = TRUE)
} # }