Learn R Programming

lfstat (version 0.9.4)

rpline: Highlight quantiles/return periods

Description

Draw a Line in an extreme value plot corresponding to a given return period.

Usage

rpline(fit, return.period = NULL, log = TRUE, ...)

Arguments

fit
object of class evfit, possibly created with evfit().
return.period
numeric vector of return periods
log
logical. If TRUE it is assumed that probabilities were plotted on a double logarithmic scale.
...
other arguments, passed on to trace_value

Value

Details

Computes the corresponding quantiles and draws lines and labels.

Examples

Run this code
data("ngaruroro")
y <- tyears(ngaruroro, dist = "wei", event = 100, plot = TRUE)
rp <- c(1.42, 5, 10)
rpline(y, return.period = rp, suffix = c("a", "m\u00B3"))

Run the code above in your browser using DataLab