rpline: Highlight quantiles/return periods

View source: R/5extreme.R

rplineR Documentation

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

Details

Computes the corresponding quantiles and draws lines and labels.

Value

This function is used for its side effects

Examples

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"))

lfstat documentation built on Nov. 10, 2022, 5:42 p.m.