extend autoplot.sim_results()#462
Conversation
|
@copilot update the changelog |
|
@d-morrison I've opened a new pull request, #463, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
|
📖 https://UCD-SERG.github.io/serocalculator/preview/pr462/ |
Update changelog for autoplot.sim_results() enhancements
Codecov Report✅ All modified and coverable lines are covered by tests.
|
|
@claude this PR (
I'll mark the PR ready for review once it's green. Generated by Claude Code |
|
👀 Picked up by workflow run #26922658294. R setup runs first; Claude itself responds after that. |
…ith patchwork
- Add tests for new aesthetic-mapping arguments in autoplot.sim_results():
test_that("x_var, group_var, color_var arguments work") with a vdiffr
snapshot for swapped axes, and test_that("color_var defaults to group_var")
checking the equality of explicit vs implicit color_var
- Replace ggpubr::ggarrange() with patchwork::wrap_plots() in
autoplot.seroincidence.by() and graph_seroresponse_model_1(),
replacing the ggpubr Imports entry with patchwork in DESCRIPTION;
update return type in roxygen2 @return and switch stop() to cli::cli_abort()
- Bump version to 1.4.0.9015 (one ahead of main at 1.4.0.9014)
- Update NEWS.md with Dependencies section noting the patchwork migration
- Regenerate man/ pages and update autoplot.seroincidence.by snapshot for
the new patchwork layout; add rlang to inst/WORDLIST
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The commit is done. Here's a summary of what was accomplished: Changes committed to
All 128 tests pass (1 Linux-only skip is expected). — posted by @claude post-step from workflow run |
This pull request enhances the flexibility and usability of the
autoplot.sim_resultsfunction by allowing users to customize which columns are mapped to the x-axis, group, and color aesthetics in plots. The documentation has been updated to reflect these new options.Function enhancements:
autoplot.sim_results:x_var,group_var, andcolor_var, allowing users to specify which columns in the input data frame are used for the x-axis, group, and color aesthetics in the plot.x_var,group_var, andcolor_varwhen constructing the plot, replacing hardcoded column references.Documentation updates:
autoplot.sim_resultsto describe the new parameters and clarify the expected input format.