index.plot: Function which plots the index for differents forecasts...

Description Usage Arguments Value Examples

View source: R/index.plot.R

Description

Function which plots the index for differents forecasts sharing the same observations

Usage

1
index.plot(forecasts, col = NULL, leg = NULL, xtypq = TRUE, ...)

Arguments

forecasts

list of "indexfore" objects, all forecasts must be computed on the same climatology and thresholds

col

colors of the differents forecasts for the plot

leg

legend of the plot

xtypq

the x-axis of the plot is quantiles values or orders (TRUE for quantiles)

...

other arguments for the plot

Value

a plot of the indices and a matrix containing the indexes for each threshold/order

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("crps")
y=crps[1:500,1]
cli=indexclim(y,thresh=seq(3,quantile(y,probs=0.995),length=2),xi=0.2)
frcst=crps[1:500,2]
idf=indexfore(frcst,cli)
frcst=crps[1:500,3]
idf2=indexfore(frcst,cli)
fore=list(idf,idf2)
idxp2=index.plot(fore,col=c("red","blue"),leg=c("forecast 1",
"forecast 2"),main="Index plot")

Example output



extremeIndex documentation built on Nov. 24, 2021, 5:08 p.m.