yearplot: Plots an xts object splitted in hydrological years

View source: R/yearplot.r

yearplotR Documentation

Plots an xts object splitted in hydrological years

Description

Plots an xts object splitted in hydrological years

Usage

yearplot(
  sim,
  obs,
  NB = NULL,
  plot = TRUE,
  maxrow = 4,
  dev = "dev",
  plotfile = NULL,
  ...
)

Arguments

sim

xts object with simulated data from COSERO

obs

xts object with observed data from COSERO

NB

numeric. Subbasin to be plotted

plot

logical. should the results be plotted or returned?

maxrow

numeric. Maximum plots in a row

dev

characterstring. format of the plot (valid is "dev","pdf","png")

plotfile

characterstring. Filename of the plot if dev != "dev"

...

additional arguments passed to plot

Value

An xts object is plotted

Author(s)

Simon Frey

See Also

dev.new.file

splityears

Examples

    # load runoff data
    data(runoff)
    yearplot(sim = runoff[,2], obs = runoff[,1])

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