THis function displays multiple SWM function outputs stacked using stack_SWM function.
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,
...
)
|
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. |
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 |
... |
additional graphical parameter for the corresponding geom. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.