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

Add option to calculate/plot rolling averages #105

Open
zkamvar opened this issue Feb 22, 2019 · 7 comments
Open

Add option to calculate/plot rolling averages #105

zkamvar opened this issue Feb 22, 2019 · 7 comments

Comments

@zkamvar
Copy link
Member

zkamvar commented Feb 22, 2019

This comes from R4EPI/sitrep#70 (comment)

@aspina7 aspina7 mentioned this issue Feb 22, 2019
65 tasks
@zkamvar
Copy link
Member Author

zkamvar commented May 9, 2019

This would be related to #104 since the underlying function could be added as a ggplot2 stat.

@zkamvar
Copy link
Member Author

zkamvar commented Aug 29, 2019

When this package hits CRAN, it will be good: https://davisvaughan.github.io/slide/

@aspina7
Copy link

aspina7 commented Dec 13, 2019

slide function currently already on CRAN as part of the {tsibble} package (but to be deprecated in favour of {slide} mentioned by zhian)

@zkamvar
Copy link
Member Author

zkamvar commented Dec 16, 2019

I've thought a lot about this (in #104 and #76 ). I've toyed around with {tsibble} and I get the feeling that it basically does what we want to turn incidence into. It presents a new class that tracks time variables and intervals in a tidy data frame. This is how it can do windowing.

Honestly, I think the way to go is to wrap a lot of the {incidence} functionality around {tsibble}. What we have in {incidence} is good for quick visualizations, but it's not very flexible since it summarizes the data from the start. The {tsibble} package has a few advantages in that it's widely used, maintained by a team dedicated to timeseries, and builds the objects incrementally.

@aspina7
Copy link

aspina7 commented Dec 16, 2019

strong thumbs up from me - how much work would it be?

@zkamvar
Copy link
Member Author

zkamvar commented Dec 16, 2019

Who the hell knows, but it's my job to figure out.

@aspina7
Copy link

aspina7 commented Feb 10, 2020

slider has been released on cran!

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

No branches or pull requests

2 participants