labels extreme terciles PlotForecastPDF()
Running PlotForecastPDF() I have found that for extreme terciles which fall out of scale, the following error occurs (a runnable code is attached):
library(CSTools)
fcst=data.frame(fcst0=rnorm(n=10,mean=26,sd=2),fcst1=rnorm(n=10,mean=23, sd=2),fcst2=rnorm(n=10,mean=23.1,sd=2),fcst3=rnorm(n=10,mean=23,sd=2))
PlotForecastPDF(fcst=fcst,tercile.limits=array(data=c(15,19,19,19,25,24,22,22),dim=c(4,2)))
Error in set(x, j = name, value = value) :
Supplied 12 items to be assigned to 11 items of column 'lab.pos'. If you wish to 'recycle' the RHS please use rep() to make this intent clear to readers of your code.
Therefore no plot is issued. The error comes from the unability to plot the label corresponding to the probabilities of the lower tercile (in this example). In some way an upper and a lower limit should be established in order the labels to fall always in the Y range. In principle it is quite unlikely to happen, but as I had the problem in a PDF that had to be delivered to a third party I think it is worth to improve it in case it reappeared.
All the best
Francesc