fdc(x, ...)## S3 method for class 'default':
fdc(x,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="black", pch=1, lwd=1,
lty=1, cex=0.4, cex.axis=1.2, cex.lab=1.2, leg.txt=NULL, leg.cex=1,
leg.pos="topright", verbose= TRUE, thr.shw=TRUE, new=TRUE, ...)
## S3 method for class 'matrix':
fdc(x, 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=palette("default")[1:ncol(x)], pch=1:ncol(x), lwd=rep(1, ncol(x)),
lty=1:ncol(x), cex=0.4, cex.axis=1.2, cex.lab=1.2, leg.txt=NULL,
leg.cex=1, leg.pos="topright",verbose=TRUE, thr.shw=TRUE, new=TRUE, ...)
## S3 method for class 'data.frame':
fdc(x, 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=palette("default")[1:ncol(x)], pch=1:ncol(x), lwd=rep(1, ncol(x)),
lty=1:ncol(x), cex=0.4, cex.axis=1.2, cex.lab=1.2, leg.txt=NULL,
leg.cex=1, leg.pos="topright", verbose=TRUE, thr.shw=TRUE, new=TRUE, ...)
## S3 method for class 'zoo':
fdc(x, 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=palette("default")[1:NCOL(x)], pch=1:NCOL(x), lwd=rep(1, NCOL(x)),
lty=1:NCOL(x), cex=0.4, cex.axis=1.2, cex.lab=1.2, leg.txt=NULL,
leg.cex=1, leg.pos="topright", verbose=TRUE, thr.shw=TRUE, new=TRUE, ...)
plot.plot.plot.default.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.points. See plot.default.par. See plot.default.par. See plot.default.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 = 1x is a matrix or data.frame).lQ.thr and hQ.thr have to be shown in the plot.plot is TRUE (default), the resulting flow duration curve is plotted in a new window.fdcu## Loading daily streamflows at the station Oca en Ona (Ebro River basin, Spain) ##
data(OcaEnOnaQts)
## Daily Flow Duration Curve
fdc(OcaEnOnaQts)
###################
# Comparing 2 FDCs:
x <- as.numeric(OcaEnOnaQts)
# Random 2nd ts
y <- x + rnorm(length(x), mean=10)
# data.frame with the 2 time series
xx <- data.frame(x=x, y=y)
# FDC plot
fdc(xx, thr.shw=FALSE)Run the code above in your browser using DataLab