Learn R Programming

evd (version 1.2-3)

dens: A Density Plot for an evd Object

Description

A density plot for an evd object. The density of the fitted model is plotted with a rug plot and (optionally) a non-parameteric estimate.

Usage

dens(x, adjust = 1, nplty = 2, jitter = FALSE, main = "Density Plot", 
    xlab = "Quantile", ylab = "Density", ...)

Arguments

x
An object of class "evd".
adjust
Adjust the smoothing bandwidth for the non-parametric estimate. See density for details.
nplty
The line type of the non-parametric estimate. Use zero to suppress.
jitter
Logical; if TRUE, the (transformed) data are jittered to produce the rug plot. See jitter. This need only be used if the data contains repeated values.
main
Title of plot.
xlab,ylab
Labels for x and y axes.
...
Other plot parameters.

Details

For non-stationary models the data are transformed to stationarity. The plot then corresponds to the distribution obtained when all covariates are zero.

See Also

density, jitter, plot.evd, pp, qq, rl, rug

Examples

Run this code
uvdata <- rgev(100, loc = 0.13, scale = 1.1, shape = 0.2)
M1 <- fgev(uvdata)
dens(M1)

Run the code above in your browser using DataLab