Learn R Programming

UKFE (version 0.3.4)

EVPlot: Extreme value plot (frequency and growth curves)

Description

Plots the extreme value frequency curve or growth curve with observed sample points.

Usage

EVPlot(
  x,
  dist = "GenLog",
  scaled = TRUE,
  Title = "Extreme value plot",
  ylabel = NULL,
  LineName = NULL,
  Unc = TRUE
)

Value

An extreme value plot (freqency or growth curve) with intervals to quantify uncertainty

Arguments

x

a numeric vector. The sample of interest

dist

a choice of distribution. "GEV", "GenLog", "Gumbel" or "GenPareto". The default is "GenLog"

scaled

logical argument with a default of TRUE. If TRUE the plot is a growth curve (scaled by the QMED). If FALSE, the plot is a frequency curve

Title

a character string. The user chosen plot title. The default is "Extreme value plot"

ylabel

a character string. The user chosen label for the y axis. The default is "Q/QMED" if scaled = TRUE and "Discharge (m3/s)" if scaled = FALSE

LineName

a character string. User chosen label for the plotted curve

Unc

logical argument with a default of TRUE. If TRUE, 95 percent uncertainty intervals are plotted.

Author

Anthony Hammond

Details

The plotting has the option of generalised extreme value (GEV), generalised Pareto (GenPareto), Gumbel, or generalised logistic (GenLog) distributions. The uncertainty is quantified by bootstrapping.

Examples

Run this code
#Get an AMAX sample and plot the growth curve with the GEV distribution
AM.203018 <- GetAM(203018)
EVPlot(AM.203018$Flow, dist = "GEV")

Run the code above in your browser using DataLab