index.plot {extremeIndex}R Documentation

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

Description

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

Usage

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

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")

[Package extremeIndex version 0.0.3 Index]