Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guzu92 opened this issue Jun 30, 2022 · 1 comment
Open

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

guzu92 opened this issue Jun 30, 2022 · 1 comment

Comments

@guzu92
Copy link

guzu92 commented Jun 30, 2022

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)
@mdancho84
Copy link
Contributor

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. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants