View source: R/modelChecking.R
plot.copula | R Documentation |
This function produces several plots to assess the goodness of fit of a fitted copula based model for spatial extremes.
## S3 method for class 'copula' plot(x, ..., sites)
x |
An object of class |
... |
Here for compatibility reasons but not yet implemented. |
sites |
A vector of integer of length 4 specifying the locations to be used for the model checking. If missing, locations will be choosen randomly. |
The diagonal plots are return level plots. The lower ones are qq-plots
(on the Gumbel scale) between observed pairwise maxima for each block,
e.g. year, and the ones obtained by simulations from the fitted
model. The upper plot compares the fitted extremal coefficient
functions to semi-empirical estimates from the F-madogram - see
fmadogram
. The two remaining plots are the stations
locations and a qq-plot of blockwise maxima where the block size is 4.
Several diagnostic plots.
Mathieu Ribatet
## Not run: n.site <- 20 n.obs <- 50 coord <- matrix(runif(2 * n.site, 0, 10), ncol = 2) colnames(coord) <- c("lon", "lat") data <- rmaxstab(n.obs, coord, "powexp", nugget = 0, range = 3, smooth = 1) fitted <- fitcopula(log(data), coord, "student", "powexp", y ~ 1, y ~ 1, y ~ 1, nugget = 0) plot(fitted) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.