Learn R Programming

UKFE (version 0.1.1)

ERPlot: Extreme rank plot

Description

A plot to inspect the distribution of ordered data

Usage

ERPlot(
  x,
  Title = "Extreme Rank Plot",
  dist = "GenLog",
  pars = NULL,
  GF = NULL,
  ln = FALSE
)

Arguments

x

numeric vector. A sample for inspection

Title

a charcter string to change the default title, which is "Extreme Rank Plot"

dist

a choice of distribution. The choices are "GenLog", "GEV", and "GenPareto"

pars

a vector of length three. In the order of location, scale, & shape. If left null the parameters are estimated from x

GF

a vector of length three, in the order of; Lcv, LSkew and Median

ln

logical TRUE or FALSE with a default of FALSE. If TRUE, the variable under consideration is log transformed for the plot

Value

The extreme rank plot with GoTF scores

Details

By default the parameters of the distribution for comparison with the sample are estimated from the sample. However, the pars argument can be used to compare the distribution with parameters estimated separately. Similarly the growth factor (GF) parameters, linear coefficient of variation (Lcv) & linear skewness (LSkew), with the median can be entered. In this way the pooling estimated disrtibution can be compared to the sample. The ERplot is described in Hammond, A. (2019). Proposal of the <U+2018>extreme rank plot<U+2019> for extreme value analysis: with an emphasis on flood frequency studies. Hydrology Research, 50 (6), 1495<U+2013>1507.

Examples

Run this code
# NOT RUN {
#Get an AMAX sample and plot
# }
# NOT RUN {
AM.27083 <- GetAM(27083)
# }
# NOT RUN {
ERPlot(AM.27083$Flow)
# }
# NOT RUN {
#Get some pooled estimate of Lcv & LSkew to use with the GF argument
# }
# NOT RUN {
QuickResults(GetCDs(27083), gauged = TRUE)
# }
# NOT RUN {
#Use the resulting Lcv, Lskew and RP2 for the GF argument and change the title
# }
# NOT RUN {
ERPlot(AM.27083$Flow, Title = "Site 27083 pooled comparison", GF = c(0.2286109, 0.1536903, 12.513))
# }

Run the code above in your browser using DataLab