timetk icon indicating copy to clipboard operation
timetk copied to clipboard

Feature request: an equivalent of the feasts::gg_season()

Open guzu92 opened this issue 2 years ago • 1 comments

It seems that timetk does not avec the equivalent of the feasts::gg_season() function. I was trying to plot with timetk (+ ggplot) the 3 last plots of the vic_elec dataset (as a tibble !), I just could not do it.

With regards to the a10 dataset plot on the same page, it was easy (see below), but for the vic_elec dataset mentioned above it would require more lines of code.

gp_a10 <- a10_tbl %>% 
  tk_seasonal_diagnostics(.date_var = Month, 
                          .value = Cost) %>% 
  ggplot() +
  geom_line(mapping = aes(x = month.lbl, 
                          y = .value, 
                          group = year, 
                          color = year))
ggplotly(gp_a10)

guzu92 avatar Jun 30 '22 07:06 guzu92

I'm going to look into this more for timetk's next CRAN release. This one has to go due to some recipes fixes. But I like this idea. 👍

mdancho84 avatar Nov 17 '22 12:11 mdancho84