Skip to content

add_mtext: new 'adj' argument to align text along the margin - #2158

Merged
rhijmans merged 1 commit into
rspatial:masterfrom
mehmetgoktug:add_mtext-adj
Aug 10, 2026
Merged

add_mtext: new 'adj' argument to align text along the margin#2158
rhijmans merged 1 commit into
rspatial:masterfrom
mehmetgoktug:add_mtext-adj

Conversation

@mehmetgoktug

Copy link
Copy Markdown
Contributor

Adds an adj argument to add_mtext so text can be aligned along the margin instead of always being centered. adj=0 aligns to the left (sides 1 and 3) or bottom (sides 2 and 4), adj=1 to the right or top.

The default adj=0.5 reproduces the current output exactly, so this is backwards compatible.

@rhijmans
rhijmans merged commit 9753b15 into rspatial:master Aug 10, 2026
6 checks passed
@rhijmans

Copy link
Copy Markdown
Member

Thank you very much, very nice.

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.

2 participants