Skip to content

Support top-level las argument - #737

Merged
grantmcdermott merged 4 commits into
mainfrom
las
Sep 20, 2026
Merged

grantmcdermott merged 4 commits into
mainfrom
las

Conversation

@grantmcdermott

@grantmcdermott grantmcdermott commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Closes #353

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Unresolved positional-compatibility, replay behavior, validation, and regression-test issues remain.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Adds top-level per-call las support for axis-label orientation, including validation, theme precedence, documentation, and snapshot coverage.

Changes:

  • Applies las overrides during plotting and margin calculation.
  • Updates NEWS and API documentation.
  • Adds orientation and theme-precedence tests and snapshots.
File Summary and final review comments
R/​tinyplot.R Adds las handling. Critical (2 votes): inserting it before log breaks existing positional calls. Moderate (1 vote): recorded graphics may replay with the restored par("las"). Nit (1 vote): documentation should not call 0 the default.
R/​sanitize_axes.R Validates and propagates las. Moderate (1 vote): NA/NaN can produce an unrelated assert_numeric() error. Nit (1 vote): add invalid, fractional, and ideally nonnumeric validation tests.
NEWS.md Documents the new top-level las argument.
man/​tinyplot.Rd Updates API documentation for las.
inst/​tinytest/​test-tinyAxis.R Adds orientation snapshots. Nit (1 vote): verify par("las") restoration and that subsequent plots are unaffected.
inst/​tinytest/​_tinysnapshot/​axis_las2_override.svg Snapshot for theme/override rendering.
inst/​tinytest/​_tinysnapshot/​axis_las1.svg Snapshot for las = 1 rendering.
Files not reviewed (1)
  • man/tinyplot.Rd: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread R/tinyplot.R
@grantmcdermott
grantmcdermott merged commit 7cbfd45 into main Sep 20, 2026
3 checks passed
@grantmcdermott
grantmcdermott deleted the las branch September 20, 2026 15:05
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.

Enable tinyplot(..., las = 1)

2 participants