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


\usage{
8
\method{plot}{CalGR}(x, xlab = NULL, ylab = NULL, main = NULL,which = c("perf", "hist", "time"), ...)
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
17
18
19
20
21
  \item{xlab}{(optional) [character] a label for the x axis: see \code{\link{title}}}
  
  \item{ylab}{(optional) [character] a label for the y axis (flow and rainfall): see \code{\link{title}}}
  
  \item{main}{(optional) [character] a main title for the plo: see \code{\link{title}}}
  
  \item{which}{[character] XXXX \code{"perf"}, \code{"hist"}, \code{"time"}}
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
}


\description{Time series plotting GR objects}


\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
w1 <- ObsGR(ObsBV = BasinObs2, TypeModel = "GR5J", CemaNeige = TRUE)
unknown's avatar
unknown committed
47
48
49
50

## Calibration step
w2 <- CalGR(ObsGR = w1, CalCrit = c("NSE", "KGE", "KGE2", "RMSE"),
            WupPer = NULL, CalPer = c("1990-01-01", "1993-12-31"))
51
52
53
plot(w2, "perf")
plot(w2, "time")
plot(w2, "hist")
unknown's avatar
unknown committed
54
55
}