Description Usage Arguments Examples
Plotting of IDF curves at a chosen station
1 2 3 4 5 6 7 8 9 |
durations |
vector of durations for which to calculate the quantiles. |
fitparams |
vector containing parameters mut, sigma0, xi, theta, eta
(modified location, scale offset, shape, duration offset, duration exponent) for chosen station
as obtained from |
probs |
vector of non-exceedance probabilities for which to plot IDF curves (p = 1-1/(Return Period)) |
cols |
vector of colors for IDF curves. Should have same length as |
add |
logical indicating if plot should be added to existing plot, default is FALSE |
legend |
logical indicating if legend should be plotted (TRUE, the default) |
... |
additional parameters passed on to the |
1 2 3 4 5 6 7 8 9 10 | data('example',package = 'IDF')
# fit d-gev
fit <- gev.d.fit(example$dat,example$d,ydat = as.matrix(example[,c("cov1","cov2")])
,mutl = c(1,2),sigma0l = 1)
# get parameters for cov1 = 1, cov2 = 1
par <- gev.d.params(fit = fit, ydat = matrix(1,1,2))
# plot quantiles
IDF.plot(durations = seq(0.5,35,0.2),fitparams = par)
# add data points
points(example[example$cov1==1,]$d,example[example$cov1==1,]$dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.