FlowDurationCurve {UKFE} | R Documentation |
Flow duration curve
Description
A function to plot flow duration curves for a single flow series or flow duration curves from multiple flow series.
Usage
FlowDurationCurve(
x = NULL,
main = "Flow duration curve",
CompareCurves = NULL,
LegNames = NULL,
Cols = NULL
)
Arguments
x |
a dataframe with date in the first column and numeric (flow) in the second. |
main |
A title for the plot. The default is Flow duration curve. |
CompareCurves |
A user supplied list where each element is a numeric vector (each a flow series). This is useful for when you want to compare curves from multiple flow series'. |
LegNames |
User supplied names for the legend. This only works when the CompareCurves argument is used. The default is Curve1, Curve2...CurveN. |
Cols |
User supplied vector of colours. This only works when the CompareCurves argument is used. The default is the Zissou 1 palette. |
Details
The user can input a dataframe of dates and flow to return a plot of the flow duration curve for annual, winter and summer. Or a list of flow series' (vectors) can be applied for a plot comparing the individual flow duration curves
Value
If a dataframe of date in the first column and flow in the second is applied with the x argument a plot of a the flow duration curves for winter, summer and annual is returned. If a list of flow series is applied with the CompareCurves argument the associated flow duration curves are all plotted together.
Author(s)
Anthony Hammond
Examples
# Plot a flow duration curve for the Thames at Kingston Oct 2000 - Sep 2015.
FlowDurationCurve(ThamesPQ[,c(1,3)])
#Compare flows from the rather wet 2013 water year (rows 4749 and 5114) with the rest of the flow
FlowDurationCurve(CompareCurves = list(ThamesPQ$Q[-seq(4749,5114)],
ThamesPQ$Q[4749:5114]), LegNames = c("All but 2013","water year 2013"))