-
Notifications
You must be signed in to change notification settings - Fork 8
Autoplot archive selector #647
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
Conversation
Merge branch 'autoplot-archive-selector' of https://github.com/cmu-delphi/epiprocess into autoplot-archive-selector # Conflicts: # R/autoplot.R
Merge branch 'autoplot-archive-selector' of https://github.com/cmu-delphi/epiprocess into autoplot-archive-selector # Conflicts: # R/autoplot.R
…lphi/epiprocess into autoplot-archive-selector
3bfc32c to
33a735e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor nits, and a potential bit of user annoyance.
| dplyr::mutate( | ||
| .colours = switch(.color_by, | ||
| all_keys = interaction(!!!all_keys, sep = "/"), | ||
| all_keys = interaction(!!!all_keys, sep = " / "), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these "/" to " / " conversions are for printing the titles in facets/colors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I thought the old version without the space was ugly.
| #' ) | ||
| autoplot.epi_archive <- function(object, ..., | ||
| .base_color = "black", | ||
| .versions = NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It occurs to me that defaulting to daily could result in a large memory footprint for large datasets because of the construction of snapshots. maybe we should default to monthly for dates? I guess that means integer time_types will behave differently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think an ideal default would be "aggregate up one level", (so daily to weekly, weekly to monthly) but that's less clear and more overhead than this. I think it's easy enough for the user to change, and you might want to see every version if there aren't too many time_values.
|
Thanks for handling review, @dsweber2. I'm going to place some wishlist items here, probably for future PRs.
|
Co-authored-by: David Weber <[email protected]>
Merge branch 'autoplot-archive-selector' of https://github.com/cmu-delphi/epiprocess into autoplot-archive-selector # Conflicts: # R/autoplot.R # man/autoplot.epi_archive.Rd
|
@dshemetov One of the GHA processes is erroneously changing Roxygen autolinks. These should be written as |
|
Couple thoughts:
|
|
Auto-styling to manual styling... sure. I've also been annoyed by conflicting histories from auto-styling, though I guess the flip side is forgetting a style before merging and having styling commits belonging to an earlier PR leaking into other PR changelogs, or necessitating separate styling PRs. Maybe in the PR template we can include a step to run the manual styler before merging. (Manual style procedure might also simplify a transition to air if we want to do that?)
|
|
So I may be responsible for this. When I rebased, I thought dev had switched to |
|
Ah! Not an action, just cross-purpose commits! Each time I went to push, I'd get a conflict message, then pull, then my links would be broken, so I assumed it was an action. To get .Rd files to cross link to another function's documentation, you need to do either |
Checklist
Please:
PR).
brookslogan, nmdefries.
DESCRIPTION. Always incrementthe patch version number (the third number), unless you are making a
release PR from dev to main, in which case increment the minor version
number (the second number).
(backwards-incompatible changes to the documented interface) are noted.
Collect the changes under the next release number (e.g. if you are on
1.7.2, then write your changes under the 1.8 heading).
Change explanations for reviewer
Magic GitHub syntax to mark associated Issue(s) as resolved when this is merged into the default branch
epi_archiveplotting (and animation?) functionality #639autoplotforepi_archive? #404