Learn R Programming

lfstat (version 0.9.12)

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)

Value

No return value, called for side effects (plotting).

Arguments

x

An object of class "lfobj"

y

An object of class "lfobj"

year

The year for which the double mass curve should be calculated

namex

character - Label of the x-Axis in the double mass curve

namey

character - Label of the y-Axis in the double mass curve

na.rm

Remove NAs?

Author

Daniel Koffler and Gregor Laaha

References

Gustard, A. & Demuth, S. (2009) (Eds) Manual on Low-flow Estimation and Prediction. Operational Hydrology Report No. 50, WNO-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