Allow a two-column layout for partner-dependence plots
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- data-visualization
Research direction
Start in R/predictive_checks_dependence.R: read check_partner_dependence() and plot.dyadMLM_partner_check() to see how the grid is currently built with par(mfrow = ...), then thread a panel_columns argument through, switching to par(mfcol = ...) when 2 is requested. Check the expected arrangements against tests/testthat/test-predictive-checks-panels.R, extend it for six and four plots, invalid counts, default and panels = FALSE, and document the option with a taller figure. Done when the new and existing panel tests pass and calculations/results are untouched.
Written by the indexing model from the issue text.
Description
Add an optional two-column layout for partner-dependence plots. Wider plots can be easier to read in portrait PDF and Word reports. Keep the current default.
This follows #45's composition-based panels.
plot(check, panel_columns = 2, ask = FALSE)
- Add
panel_columns = 3tocheck_partner_dependence()andplot.dyadMLM_partner_check(). Accept 2 or 3; ignore it whenpanels = FALSE. - Keep the default: six plots in a 2x3 grid, or four in a 2x2 grid, filled across rows.
- With
panel_columns = 2, use a 3x2 grid for six plots and a 2x2 grid for four. Fill down columns in both cases. - Group member SDs and partner correlation before the dyad-average and difference summaries. Preserve one figure per composition, headings, dyad counts, pausing, and restoration of graphics settings.
- Test positions and order for six and four plots, unchanged default and
panels = FALSEbehavior, and rejection of invalid column counts when panels are used. - Document the option with a taller report figure. It changes the arrangement, not graphics-device dimensions.
For four plots with panel_columns = 2:
| Left column | Right column | |
|---|---|---|
| Top | Common member SD | Dyad-average SD |
| Bottom | Partner correlation | Half-difference RMS |
Start in R/predictive_checks_dependence.R and tests/testthat/test-predictive-checks-panels.R. Base R's par(mfcol = ...) fills down columns; par(mfrow = ...) fills across rows. Keep calculations and stored results unchanged.
- Dominant language
- R
- Stars
- 1
- Forks
- 2
- Avg merge
- 9h 28m
- Merged PRs (30d)
- 21
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Pascal-Kueng/dyadMLM
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Pascal-Kueng/dyadMLM#92 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Pascal-Kueng/dyadMLM#83 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Pascal-Kueng/dyadMLM#71 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Pascal-Kueng/dyadMLM#70 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Pascal-Kueng/dyadMLM#69 ·
Maintainers usually reply within 1 day
All issues in Pascal-Kueng/dyadMLM
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stan-dev/priorsense#150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bennettoxford/opencodecounts#170 ·
-
complexity::1-low effort::1-hours priority::3-could
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jumpingrivers/audit.workbench#43 ·
Maintainers usually reply within 1 day
-
complexity::1-low effort::1-hours priority::3-could
Difficulty 1/5 Under an hour Newbie friendliness 85/100
jumpingrivers/audit.connect#71 ·
Maintainers usually reply within 1 day