display_SWM_stack: Display multiple SWM outputs

Description Usage Arguments

View source: R/display_SWM.R

Description

THis function displays multiple SWM function outputs stacked using stack_SWM function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
display_SWM_stack(
  model_stack,
  what = "REW",
  type = "line",
  facet_by_time = F,
  save_graph = F,
  path_save,
  filename,
  device,
  ...
)

Arguments

model_stack

data.frame and SWM_stack. The output of stack_SWM, corresponding to daily aggregated outputs for several simulations.

what

The name of the variable to display, among "REW" and "Drainage" (if relevant)

type

The type of graph. It corresponds to a geom_ in ggplot's namespace, e.g. "line" for geom_line, "point" for geom_point

facet_by_time

character, or FALSE. If FALSE, the whole time series will be displayed on a single graph (which can cause overplotting if it is will be displayed on a single graph (which can cause overplotting if it is long). Otherwise, please specify the name of the time column you wish to use to facet (=break into different plots), e.g. "year", or "month" if you have a single year. For multiple years to be displayed by month, you can create a composite column (e.g. year_month = paste(output$year, output$month, sep = "_")).

save_graph

logical, whether the graph should be saved or not

path_save

if save_graph = TRUE the location of the file

filename

if save_graph = TRUE the name of the file

device

if save_graph = TRUE, the device used (see ?ggplot2::ggsave() for more details)

...

additional graphical parameter for the corresponding geom.


EcoFoG/SWBM documentation built on Feb. 22, 2022, 1:12 a.m.