Skip to content

feat: draw plot.bayesOpt() with patchwork instead of ggpubr - #20

Merged
novica merged 1 commit into
mainfrom
feat/patchwork-plot
Oct 3, 2026
Merged

novica merged 1 commit into
mainfrom
feat/patchwork-plot

Conversation

@novica

@novica novica commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Draw plot.bayesOpt() with patchwork instead of ggpubr. ggpubr was used only for ggarrange(), annotate_figure() and text_grob() but brought in about 57 extra recursive dependencies; patchwork adds one.

Related GitHub Issues and PRs

Are these changes tested?

Yes. test-plotting.R had no expectations; it now checks that plot() returns a patchwork object with both panels (runs on CRAN too), and that a short plotProgress = TRUE run completes. A sample plot was rendered and checked visually.

Are there any user-facing changes?

Yes. plot() returns a patchwork object instead of a ggarrange one, and ... is passed to patchwork::plot_layout() instead of ggarrange().

Was AI used for this PR?

In accordance with the AI generation guidelines, please disclose whether and how AI was used in this PR.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

Assisted-by: Claude Code

BEGIN_COMMIT_OVERRIDE
feat: replace ggpubr with patchwork, cutting dependencies from 84 to 27
END_COMMIT_OVERRIDE

ggpubr pulled in about 57 extra recursive dependencies for one layout call. plot() now returns a patchwork object.

Closes #15

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
@novica
novica merged commit 40598a1 into main Oct 3, 2026
7 checks passed
@novica
novica deleted the feat/patchwork-plot branch October 3, 2026 15:55
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.

Replace ggpubr with patchwork in plot.bayesOpt()

1 participant