Skip to content

Fix split-table alignment for grouped subgroups (#40) - #41

Merged
thatoneguy006 merged 1 commit into
devfrom
codex/fix-40-subgroup-split-alignment
Oct 22, 2026
Merged

thatoneguy006 merged 1 commit into
devfrom
codex/fix-40-subgroup-split-alignment

Conversation

@thatoneguy006

Copy link
Copy Markdown
Owner

Fixes #40.

When subgroup and group are both mapped, the centered and dodged text layers could train a split table's y scale in a different row order than the forest plot. Establish the complete visible row order with an invisible layer before drawing grouped table text, keeping estimates and subgroup p-values aligned with the forest plot. The shared table builder also fixes the same behavior in estimate-only add_forest_table() layouts.

Add numeric regression checks for estimates on either side, stripes, custom dodge widths, overall/level p-values, factor and character groups, sparse groups, free-y facets, and custom row selections. Add vdiffr to Suggests and two reviewed SVG snapshots covering striped and faceted layouts.

Validation:

  • R CMD build and R CMD check --no-manual: Status: OK, including vignette builds and checks.
  • Complete suite: 811 passed, 0 failures, 0 warnings, 0 skips, including both vdiffr snapshots.
  • Confirmed that the original plotting code fails the new visual baseline and the fix matches it.
  • Visually inspected the rendered striped and faceted examples.

@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@thatoneguy006
thatoneguy006 changed the base branch from main to dev October 22, 2026 22:01
@thatoneguy006
thatoneguy006 force-pushed the codex/fix-40-subgroup-split-alignment branch from 23964bb to 9ec5ffa Compare October 22, 2026 22:02
@thatoneguy006
thatoneguy006 merged commit d811730 into dev Oct 22, 2026
6 checks passed
@thatoneguy006
thatoneguy006 deleted the codex/fix-40-subgroup-split-alignment branch October 23, 2026 12:41
thatoneguy006 added a commit that referenced this pull request Oct 31, 2026
* Misc doc changes

* Implement structured forest rows and table formatters

* Fix grouped subgroup table alignment (#40) (#41)

* Support point sizes mapped from data columns (#38)

* Remove point size vignette addition

* Support point sizes mapped from data columns (#38) (#42)

* Support point sizes mapped from data columns (#38)

* Fix shared layer mutation when adding scales and tables

* Render forest rows consistently in top-to-bottom data order

* Filter mixed-model tidies to conditional coefficients

* Preserve supplied model order in legends and dodge

* Reject unknown fitted-model arguments

* Recognize quasibinomial effect scales

* Clarify exponentiate semantics for models and data frames

* Default forest data mappings to broom column names

* Match legend titles to mapped group headers

* Prune removed source columns while preserving metadata keys

* Round numeric extra table columns by default

* Document summary row geometry

* Remove redundant hline aesthetic inheritance arguments

* Normalize subgroup contrast labels across versions

* Use population-level mixed-model subgroup effects

* Set dependency floors and expand compatibility CI

* Use a temporary null device for table measurement

* Remove unreachable row construction fallbacks

* Reject unsupported forest plot inputs clearly

* Remove duplicate subgroup validation

* Correct internal table width documentation

* Clean section comments vignettes and stale submission metadata

* Prepare 0.6.0 argument aliases and API consistency

* Record independent change review and guard ordinary ggplot scales

* Refresh issue forms release notes and CI triggers
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

Successfully merging this pull request may close these issues.

[Bug] Subgroup + group mapping doesn't work properly for add_split_table()

1 participant