plot_scenarios_bars: Function plot bar plots to compare results from scenarios

Description Usage Arguments Value Examples

View source: R/f_plotting_results.R

Description

This function allows plotting bar plots for the scenario results extracted and averaged from SWAT output files.

Usage

1
plot_scenarios_bars(df, variable_name, filter_vec = c("_"))

Arguments

df

Data.frame of data extracted from output.rch and output.sub files and processed with get_diff_from_baseline function. Beside other columns has to have SCENARIO column, which join all information about scenario.

variable_name

Sting with the name of column to plot (example "NSURQt/y")

filter_vec

Vector, which allows to filter scenarios. Filtering could be done by AND providing vector members seperated by comma, or by OR seperating one vector member in many '|'. For example c("measure_40", "rcp45|rcp85", "2080_2099") this vector filter by AND and by OR.

Value

Bar plot

Examples

1
##plot_scenarios_bars(df, "NSURQt/y", c("measure_40", "rcp45|rcp85", "2080_2099"))

biopsichas/swattools documentation built on May 27, 2021, 6:17 p.m.