Closed cmcrowley closed 3 years ago
Thanks for raising this, and for the clean repro example and description of the issue/solution. This is definitely a bug, but it looks like will not be too hard to fix.
In the meantime, I think the only workaround would be to copy out the plotting code from https://github.com/facebook/prophet/blob/187bf06bf7d752ddaff7bcbe993c2b91f66e492f/R/R/plot.R#L177 and remove the lines that use aes_string.
The fix has been pushed to CRAN in the latest v1.0 release
Most names of
generated_holidays
contain spaces, and so fail to plot when passed toplot_forecast_component()
. The tidyeval approach is to forego usingaes_()
oraes_string()
and instead use quasiquotation inaes
.This is the same issue as documented here. Here, Tidyverse creator Hadley Wickham responds to this issue by suggesting changing use of aes_string.
Reprex:
R Session Info: