x
and for two uncertainty bounds, with the possibility of plotting an additional FDC representing simulated streamflows for x
, in order to compare them.fdcu(x, lband, uband, ...)## S3 method for class 'default':
fdcu(x, lband, uband, sim, lQ.thr=0.7, hQ.thr=0.2, plot=TRUE, log="y",
main="Flow Duration Curve", xlab="\% Time flow equalled or exceeded",
ylab="Q, [m3/s]", ylim, yat=c(0.01, 0.1, 1), xat=c(0.01, 0.025, 0.05),
col=c("black", "red"), pch=c(1, 15), lwd=c(1, 0.8), lty=c(1, 3), cex=0.2,
cex.axis=1.2, cex.lab=1.2, leg.txt= c("Qobs", "Qsim", "95PPU"),
leg.cex=1, leg.pos="auto", verbose= TRUE, thr.shw=TRUE, border=NA,
bands.col="lightcyan", bands.density=NULL, bands.angle=45, new=TRUE, ...)
## S3 method for class 'matrix':
fdcu(x, lband, uband, sim, lQ.thr=0.7, hQ.thr=0.2, plot=TRUE, log="y",
main="Flow Duration Curve", xlab="\% Time flow equalled or exceeded",
ylab="Q, [m3/s]", ylim, yat=c(0.01, 0.1, 1), xat=c(0.01, 0.025, 0.05),
col=matrix(c(rep("black", ncol(x)),
palette("default")[2:(ncol(x)+1)]), byrow=FALSE, ncol=2),
pch=matrix(rep(c(1, 15), ncol(x)), byrow=TRUE, ncol=2),
lwd=matrix(rep(c(1, 0.8), ncol(x)), byrow=TRUE, ncol=2),
lty=matrix(rep(c(1, 3), ncol(x)), byrow=TRUE, ncol=2),
cex=rep(0.1, ncol(x)), cex.axis=1.2, cex.lab=1.2,
leg.txt=c("OBS", colnames(x), "95PPU"), leg.cex=1, leg.pos="auto",
verbose= TRUE, thr.shw=TRUE, border=rep(NA, ncol(x)),
bands.col=rep("lightcyan", ncol(x)), bands.density=rep(NULL, ncol(x)),
bands.angle=rep(45, ncol(x)), new=TRUE, ...)
## S3 method for class 'data.frame':
fdcu(x, lband, uband, sim, lQ.thr=0.7, hQ.thr=0.2, plot=TRUE, log="y",
main="Flow Duration Curve", xlab="\% Time flow equalled or exceeded",
ylab="Q, [m3/s]", ylim, yat=c(0.01, 0.1, 1), xat=c(0.01, 0.025, 0.05),
col=matrix(c(rep("black", ncol(x)),
palette("default")[2:(ncol(x)+1)]), byrow=FALSE, ncol=2),
pch=matrix(rep(c(1, 15), ncol(x)), byrow=TRUE, ncol=2),
lwd=matrix(rep(c(1, 0.8), ncol(x)), byrow=TRUE, ncol=2),
lty=matrix(rep(c(1, 3), ncol(x)), byrow=TRUE, ncol=2),
cex=rep(0.1, ncol(x)), cex.axis=1.2, cex.lab=1.2,
leg.txt=c("OBS", colnames(x), "95PPU"), leg.cex=1, leg.pos="auto",
verbose= TRUE, thr.shw=TRUE, border=rep(NA, ncol(x)),
bands.col=rep("lightcyan", ncol(x)), bands.density=rep(NULL, ncol(x)),
bands.angle=rep(45, ncol(x)), new=TRUE, ...)
x
, for which the flow duration curve have to be computed.
Measurements at several gauging stations can be stored in a data.frame ox
, for which the flow duration curve have to be computed.
Measurements at several gauging stations can be stored in a data.frame ox
, for which the flow duration curve have to be computed.
Measurements at several gauging stations can be stored in a data.frame of matrix object. When <plot.default
. The y limits of the plot.log="y"
.
numeric, with points at which tick-marks will try to be drawn in the Y axis, in addition to the defaults computed by R. See the at
argument in Axis
.log="x"
.
numeric, with points at which tick-marks will try to be drawn in the x axis, in addition to the defaults computed by R. See the at
argument in Axis
.plot.default
. The colors for lines and points. Multiple colors can be specified so that each point can be given its own color. If there are fewer colors than points they are recycled in tplot.default
. A vector of plotting characters or symbols: see points
.plot.default
. The line width, see par
.plot.default
. The line type, see par
.plot.default
. A numerical vector giving the amount by which plotting characters and symbols should be scaled relative to the default.
This works as a multiple of x
.par("cex")
. Default value = 1lQ.thr
and hQ.thr
have to be shown in the plot.
When leg.pos="auto"
, the legend with the threshold values is located on the <polygon
. The color to draw the border of the polygon with the uncertainty bounds. The default, 'NA', means to omit borders.polygon
. The color for filling the polygon. The default, 'NA', is to leave polygons unfilled, unless bands.density
is specified. If bands.density
is specified with a popolygon
. The density of shading lines for the polygon with the uncertainty bounds, in lines per inch. The default value of 'NULL' means that no shading lines are drawn. A zero value of ban
polygon
. The slope of shading lines for the polygon with the uncertainty bounds, given as an angle in degrees (counter-clockwise).fdc
## Loading daily streamflows at the station Oca en Ona (Ebro River basin, Spain) ##
data(OcaEnOnaQts)
q <- OcaEnOnaQts
# Creating a fictitious lower uncertainty band
lband <- q - min(q, na.rm=TRUE)
# Giving a fictitious upper uncertainty band
uband <- q + mean(q, na.rm=TRUE)
# Plotting the flow duration curve corresponding to 'q', with two uncertainty bounds
fdcu(q, lband, uband)
Run the code above in your browser using DataLab