feasts package gg_season() function


Following the recent ggplot2 update to 3.5.0, there is a problem with the gg_season() function in library feasts.

From fpp3, 2.4 Seasonal plots | Forecasting: Principles and Practice (3rd ed)

> vic_elec |> gg_season(Demand, period = "day") +
+   theme(legend.position = "none") +
+   labs(y="MWh", title="Electricity demand: Victoria")
Error in `ggplot2::scale_color_gradientn()`:
! `breaks` and `labels` have different lengths.
Run `rlang::last_trace()` to see where the error occurred.


This is fixed in the dev version of feasts available at GitHub - tidyverts/feasts: Feature Extraction And Statistics for Time Series. It will make its way to CRAN soon.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.