Wrong breaks for precipitation with PlotRobinson
Hi @vagudets
I got the error:
Error in cut.default(dat, breaks = brks_ggplot, include.lowest = T) :
'breaks' are not unique
When using lambert projection to visualise metrics.
I found that the stored breaks in the object brks_ggplot
differ from the brks
to plot the legend:
brks_ggplot
[1] -1.96355 -1.00000 -0.80000 -0.60000 -0.40000 -0.20000 0.00000 0.20000
[9] 0.40000 0.60000 0.80000 1.00000 1.00000
brks
[1] -1.0 -0.8 -0.6 -0.4 -0.2 0.0 0.2 0.4 0.6 0.8 1.0
So, I understand the problem comes from brks_ggplot
because 1 is repeated.
I am unsure if it is a problem in SUNSET or PlotRobinson.
Could you please help me?
The recipe is /esarchive/scratch/nperez/git/auto-s2s/recipe_prlr_seasonal_oper.yml
and the code /esarchive/scratch/nperez/git/auto-s2s/exec_ecvs_seasonal_oper.R
Notice that using the start date 0601 instead of 0701 the problem doesn't occur.
Thanks in advance,
Núria
FYI @aho