dy.cosero: Plot results regarding runoff from COSERO using dygraphs

View source: R/dy.cosero.r

dy.coseroR Documentation

Plot results regarding runoff from COSERO using dygraphs

Description

Plot the results regarding runoff from COSERO using dygraphs. The output may be grouped together with other results.

Usage

dy.cosero(
  qoutput = NULL,
  read.data = TRUE,
  prec = FALSE,
  wb = FALSE,
  comp = FALSE,
  eta = FALSE,
  storage = FALSE,
  snowmelt = FALSE,
  group = NULL,
  area = NULL,
  height = NULL,
  NB = 1,
  ...
)

Arguments

qoutput

Either a path to the file to be read or the result from readCosero

read.data

logical. If TRUE, qoutput will be read in using readCosero

prec

logical or character string. Should precipitation data be read in? Maybe a path to the corresponding file.

wb

logical. If TRUE cumsums of waterbalance components are calculated and plotted. Note that if wb == TRUE, area must be given!

comp

logical or character string. Should data about the composition of runoff be read in? Maybe a path to the corresponding file.

eta

logical or character string. Should data about evapotranspiration be read in? Maybe a path to the corresponding file.

storage

logical or character string. Should storage data be read in? Maybe a path to the corresponding file.

snowmelt

logical or character string. Should snow data be read in? Maybe a path to the corresponding file.

group

character string or NULL. Used to group dygraph plots. See dygraph

area

numeric. Vector with the length of subbasins modelled in qoutput. The area of each subbasin in square meters (m^2).

height

numeric, "auto", or NULL. Height in pixels (optional, defaults to automatic sizing). If "auto" a total plot of 1200px is assumed and devided by the amount of plots.

NB

numeric. Number of subbasin that will be analysed. Note that if NB is a vector, only the first element will be used.

...

additional arguments passed on either to readCosero or to dygraph

Details

If read,data == FALSE the results from readCosero must be passed on to dy.cosero. In this case the parameters prec,comp,storage,snowmelt, and eta may be logical

Note that at this time, this function only works for basins with only one subbasin!

Value

Nothing is returned to R. Only the dygraphs are plotted.

Author(s)

Simon Frey


freysimon/TigeR documentation built on April 18, 2024, 4:57 p.m.