Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • CSTools CSTools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • External
  • CSToolsCSTools
  • Issues
  • #65
Closed
Open
Issue created Aug 19, 2020 by Francesc Roura Adserias@froura🌍Developer

labels extreme terciles PlotForecastPDF()

Hi @llledo @nperez ,

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

Assignee
Assign to
Time tracking