Learn R Programming

evir (version 1.7-4)

tailplot: Plot Tail Estimate From GPD Model

Description

Interacts with the output of gpd to produce a plot of the tail of the underlying distribution of the data. This is one of the options of plot.gpd, but tailplot enables the user to bypass the menu of the former.

Usage

tailplot(x, optlog = NA, extend = 1.5, labels = TRUE, …)

Arguments

x

a gpd object

optlog

optional argument giving a particular choice of logarithmic axes: "x" x-axis only; "y" y-axis only; "xy" both axes; "" neither axis.

extend

optional argument expressing how far x-axis should extend as a multiple of the largest data value. This argument must take values greater than 1 and is useful for showing estimated quantiles beyond data.

labels

optional argument specifying whether or not axes should be labelled

other graphics parameters

Value

A list object containing details of the plot is returned invisibly. This object should be used as the first argument of gpd.q or gpd.sfall to add quantile estimates or expected shortfall estimates to the plot.

See Also

gpd, plot.gpd, shape, quant

Examples

Run this code
# NOT RUN {
data(danish)
out <- gpd(danish, 10) 
# }
# NOT RUN {
tailplot(out)
# }

Run the code above in your browser using DataLab