plot.gev_fit: Plot diagnostics for an gev_fit object

Description Usage Arguments Details Examples

View source: R/model_fit.R

Description

Diagnostic plots of a GEV fit : standardized residuals plots, qqplot, density of fitted vs theorical density, times series ans return levels

Usage

1
2
## S3 method for class 'gev_fit'
plot(x, ...)

Arguments

x

an object of class gev_fit.

...

Arguments to be passed to methods,

Details

Diagnostic plots of the fit : standardized residuals plots, qqplot, density of fitted vs theorical density, times series ans return levels. This function is just a wrapper of plot.fevd from the extRemes packages : the GEV is fitted again with the fevd function with initial parameters taken from the gev_fit object and then plotted using plot.fevd.

Examples

1
2
3
4
5
6
7
data(tas)
#Example with the same covariate for the mean and variance parameter
ge_fit <- gev_fit(eur_tas, data=tas, mu_mod=~gbl_tas, sig_mod=~gbl_tas, time_var="year")
# get the values of the mean and variance parameters of the GEV at each time
compute_par(ge_fit, tas)
# plot diagnostic plot of the fit : standardized residuals plots, qqplot, density of fitted vs theorical density, times series ans return levels
plot(ge_fit)

thaos/FARg documentation built on May 25, 2019, 8:18 a.m.