Improve function PlotForecastPDF
I am opening this issue to let you know that I have add some parameters and features to the PlotForecastPDF function. The development is in branch develop-PlotForecastPDF-improved
(https://earth.bsc.es/gitlab/external/cstools/-/blob/develop-PlotForecastPDF-improved/R/PlotForecastPDF.R).
The summary of the changes is:
- It is now possible to include several observations for one forecast panel. It is also possible to include different observations for different forecast panels.
- It is now possible to change the text of the legends (e.g. the name of the categories, the name of the xlab and ylab, name of extreme categories, name of the observations and ensemble members).
- There are now several parameters to control the size of the text, legends and titles (e.g. xlab, ylab, title, legends).
- It is now possible to decide whether to include the horizontal line for the observations.
- It is now possible to adjust the height, width and resolution of the figure.
Here you can see some examples of figures:
More than one forecast (I haven't managed to remove the NA's in the legend of the observations)
I hope it keeps working as before for the rest of cases, but I have done only some basic checks. Also, the documentation has not been updated (we can do it after deciding whether to merge it).
Best regards,
Carlos
FYI @nperez