Learn R Programming

lfstat (version 0.9.4)

dmcurve: Double Mass Curve

Description

Calculates the double mass curve of two object of class 'lfobj'.

Usage

dmcurve(x, y, year = "any", namex = substitute(x), namey = substitute(y), na.rm = TRUE)

Arguments

x
An object of class "lfobj"
y
An object of class "lfobj"
year
The year for which the dmcuve should be calculated
namex
character - Label of the x-Axis in the dmcurve
namey
character - Label of the y-Axis in the dmcurve
na.rm
Remove NAs?

References

Gustard, A. & Demuth, S. (2009) (Eds) Manual on Low-flow Estimation and Prediction. Operational Hydrology Report No. 50, WMO-No. 1029, 136p.

Examples

Run this code
data(ngaruroro)
n1 <- subset(ngaruroro, year %in% 1985:1989)
n2 <- subset(ngaruroro, year %in% 1990:1995)
dmcurve(n1,n2, namex = "'Ngaruroro 1985 - 1989'", namey = "'Ngaruroro 1990
- 1995'")

Run the code above in your browser using DataLab