gev.d.diag | R Documentation |
Produces diagnostic plots for d-gev models using
the output of the function gev.d.fit
. Values for different durations can be plotted in
different colors of with different symbols.
gev.d.diag( fit, subset = NULL, cols = NULL, pch = NULL, which = "both", mfrow = c(1, 2), legend = TRUE, title = c("Residual Probability Plot", "Residual Quantile Plot"), emp.lab = "Empirical", mod.lab = "Model", ci = FALSE, ... )
fit |
object returned by |
subset |
an optional vector specifying a subset of observations to be used in the plot |
cols |
optional either one value or vector of same length as |
pch |
optional either one value or vector of same length as |
which |
string containing 'both', 'pp' or 'qq' to specify, which plots should be produced. |
mfrow |
vector specifying layout of plots. If both plots should be produced separately,
set to |
legend |
logical indicating if legends should be plotted |
title |
character vector of length 2, giving the titles for the pp- and the qq-plot |
emp.lab, mod.lab |
character string containing names for empirical and model axis |
ci |
logical indicating whether 0.95 confidence intervals should be plotted |
... |
additional parameters passed on to the plotting function |
data('example',package ='IDF') fit <- gev.d.fit(xdat=example$dat,ds = example$d,ydat=as.matrix(example[,c('cov1','cov2')]) ,mutl=c(1,2),sigma0l=1) # diagnostic plots for complete data gev.d.diag(fit,pch=1,ci = TRUE) # diagnostic plots for subset of data (e.g. one station) gev.d.diag(fit,subset = example$cov1==1,pch=1,ci = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.