plot.CalGR.Rd 1.55 KB
Newer Older
unknown's avatar
unknown committed
1
2
3
\encoding{UTF-8}
\name{plot.CalGR}
\alias{plot.CalGR}
4
\title{Time series plotting GR calibration objects}
unknown's avatar
unknown committed
5
6
7


\usage{
8
\method{plot}{CalGR}(x, xlab = NULL, ylab = NULL, main = NULL, which = c("perf", "iter", "ts"), ...)
unknown's avatar
unknown committed
9
10
11
12
13
14
}


\arguments{
  \item{x}{[object of class \emph{CalGR}] see \code{\link{CalGR}} for details}
  
15
16
  \item{xlab}{(optional) [character] a label for the x axis: see \code{\link{title}}}
  
17
  \item{ylab}{(optional) [character] a label for the y axis (flow and precipitation) (see \code{\link{title}})}
18
  
19
  \item{main}{(optional) [character] a main title for the plot (see \code{\link{title}})}
20
  
21
  \item{which}{[character] choice of the plot type (\code{"perf"} (default): plot diagnostics; \code{"iter"}: parameter values and the calibration criterion during the progression steps of calibration; \code{"ts"}: time series of observed precipitation and observed and simulated flows)}
unknown's avatar
unknown committed
22
  
unknown's avatar
unknown committed
23
  \item{...}{other parameters to be passed through to plotting functions}
unknown's avatar
unknown committed
24
25
26
}


27
\description{Time series plotting GR calibration objects}
unknown's avatar
unknown committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45


\seealso{
\code{\link{CalGR}}
}


\author{Olivier Delaigue}


\examples{
library(airGR)

## data.frame of observed data
data(L0123001)
BasinObs2 <- BasinObs[, c("DatesR", "P", "E", "Qmm", "T")]

## Preparation of observed data for modelling
46
OBS <- ObsGR(ObsBV = BasinObs2, TypeModel = "GR5J", CemaNeige = TRUE)
unknown's avatar
unknown committed
47
48

## Calibration step
49
CAL <- CalGR(ObsGR = OBS, CalCrit = c("NSE", "KGE", "KGE2", "RMSE"),
50
51
             WupPer = NULL, CalPer = c("1990-01-01", "1993-12-31"))
plot(CAL, which = "perf")
52
53
plot(CAL, which = "ts")
plot(CAL, which = "iter")
unknown's avatar
unknown committed
54
55
}