PlotFdc: Plot a flow duration curve for a single streamflow time...

Description Usage Arguments Details Value See Also Examples

View source: R/calculate_fdc.R

Description

PlotFdc plots a flow duration curve from a dataframe processed through CalcFdc and optional spline function processed through CalcFdcSpline.

Usage

1
PlotFdc(strDf, strCol = "q_cms", spline = TRUE, fdcProb = NULL)

Arguments

strDf

The streamflow time series dataframe (e.g., output from ReadFrxstPts or ReadUsgsGage) already processed through CalcFdc. The data frame must contain a column of streamflow values and a corresponding column (named "<strCol>.fdc") of flow exceedance probabilities.

strCol

The name of the column containing the streamflow values (DEFAULT="q_cms").

spline

(TRUE or FALSE) Option to add spline-fit curves to the plot (DEFAULT=TRUE).

fdcProb

Optional exceedance threshold to calculate/plot (e.g., 0.2 for 20% exceedance).

Details

PlotFdc reads the dataframe generated by CalcFdc and outputs a plot of flow vs. percent exceedances and, optionally the fitted spline curve.

Value

A plot of flow (y) vs. flow exceedance probabilities (x).

See Also

Other flowDurationCurves: CalcFdcSpline, CalcFdc, PlotFdcCompare

Examples

1
2
3
4
5
6
7
8
## Take a time series of observed 5-minute streamflow values for Fourmile 
## Creek (stored in the dataframe obsStr5min.fc in the column "q_cms") that
## has already been processed through "CalcFdc" (so also contains a column 
## named "q_cms.fdc") and plot with the 20% exceedance threshold called out.
## Not run: 
PlotFdc(obsStr5min.fc, fdcProb=0.2)

## End(Not run)

mccreigh/rwrfhydro documentation built on May 12, 2018, 3:08 a.m.