plot2runs: Plots the results from two CRHM runs

View source: R/plot2runs.R

plot2runsR Documentation

Plots the results from two CRHM runs

Description

Creates a time series plot facetted by variable of values from two CRHM runs. The same variables must be present in the came columns in both runs.

Usage

plot2runs(
  run1,
  run2,
  cols = NULL,
  start_datetime = NULL,
  end_datetime = NULL,
  model1_name = "Model 1",
  model2_name = "Model 2"
)

Arguments

run1

Required. Standard CRHMr data frame of output from first run.

run2

Required. Standard CRHMr data frame of output from second run.

cols

Variable columns to plot. If omitted, all variables are used. Otherwise all columns are specified w.r.t. the datetime.

start_datetime

Optional. A POSIXct datetime. If specified, only values >= the start_datetime are plotted.

end_datetime

Optional. A POSIXct datetime. If specified, only values <= the end_datetime are plotted.

model1_name

Optional. Name of the first model. Default is Model 1.

model2_name

Optional. Name of the second model. Default is Model 2.

Value

Returns ggplot time series plot of the CRHM output, facetted by variable.

Examples

## Not run: p <- plot2runs("CRHM_run1", "CRHM_run2", cols = c(1, 2, 3))


CentreForHydrology/CRHMr documentation built on April 6, 2024, 5:27 p.m.