Learn R Programming

FloodFreqPlot (version 0.1.0)

PlotPos: Plotting Position Probability

Description

PlotPos returns the empirical probability values corresponding to the observed data of hydrological extreme events as a vector of numerics.

Usage

PlotPos(data_obs, PP)

Arguments

data_obs

A vector, data frame or matrix containing observed data or flood quantiles.

PP

A character string that determines the empirical formula used to calculate the probability. The formula can be chosen from the list: "Blom", "Chegodayev", "California" "Gringorten", "Hazen", "Tukey", and "Weibull".

Value

The function returns the probabilities assigned to the observed data as a vector of numerics.

Reference

Chow, V. T., Maidment, D. R., & Mays, L. W. (1988). Applied Hydrology. McGraw-Hill, New York, U.S.

Details

This is a function to calculate the emprical probability values assigned to the observed data of hydrological extreme events to be plotted.

See Also

ProbPlot for graphical frequency analysis.

Examples

Run this code
# NOT RUN {
# First Example
data('Harricana')
PlotPos(data_obs = Harricana, PP = 'Weibull')

# Second Example
data('B17C_Tab8_1')
PlotPos(data_obs = B17C_Tab8_1, PP = 'Cunnane')

# }

Run the code above in your browser using DataLab