plot {airGRteaching} | R Documentation |
Static plots for time series of PrepGR, CalGR and SimGR objects
Description
Static plots for time series of PrepGR, CalGR and SimGR objects. Also plot of the evolution of parameters and objective function during the calibration step for CalGR object.
Usage
## S3 method for class 'PrepGR'
plot(x, type = "l",
col.Precip = "royalblue", col.Q = "black", col.na = "grey",
xlab = NULL, ylab = NULL, main = NULL,
plot.na = TRUE, ...)
## S3 method for class 'CalGR'
plot(x, xlab = NULL, ylab = NULL, main = NULL,
which = "synth", log_scale = FALSE, ...)
## S3 method for class 'SimGR'
plot(x,
which = "synth", log_scale = FALSE, ...)
Arguments
x |
[PrepGR], [CalGR] or [SimGR] objects (see |
type |
[character] the type of plot that should be drawn (see |
col.Precip |
(optional) [character]color code or name for precipitation, see |
col.Q |
(optional) [character] color code or name for observed flow, see |
col.na |
(optional) [character] color code or name for missing values, see |
xlab |
(optional) [character] a label for the x-axis (see |
ylab |
(optional) [character] a label for the y-axis (vector of 1 or 2 values for rainfall and flow respectively; see |
main |
(optional) [character] a main title for the plot (see |
plot.na |
[boolean] boolean indicating if the missing values are plotted on the x-axis |
which |
[character] choice of the plot type ( |
log_scale |
(optional) [boolean] indicating if the flow and the error time series axis and the flow error time series axis are to be logarithmic, default = |
... |
other parameters to be passed through to plotting functions |
Author(s)
Olivier Delaigue
See Also
airGR
plot.OutputsModel
function
airGRteaching
dyplot
function to display dynamic plots
PrepGR
, CalGR
, SimGR
Examples
library(airGRteaching)
## data.frame of observed data
data(L0123001, package = "airGR")
BasinObs2 <- BasinObs[, c("DatesR", "P", "E", "Qmm", "T")]
## Preparation of observed data for modelling
PREP <- PrepGR(ObsDF = BasinObs2, HydroModel = "GR4J", CemaNeige = FALSE)
## Observed data plotting
plot(PREP)