# NOT RUN {
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")
# }
Run the code above in your browser using DataLab