fix(logo): reserve a logo band, keep patchwork panels, and preserve logo aspect (#20)

The logo gets its own band (logo_height inches) instead of negative
margins, so captions are no longer clipped. Patchwork compositions go
through patchworkGrob() so every panel survives. font_scale defaults to 1.
make_logo_grob() sizes by height so the logo keeps its shape on any canvas.

Closes #20

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Sonnet 5.5 committed 2026-10-15 15:27:55 -04:00
1 parent d6e3ba2fb4
commit 0561df4221
6 files changed
+171 -72

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ add_logo_ga(
nrow = 1,
widths = NULL,
margin_param = NULL,
font_scale = 1.1
font_scale = 1
)
}
\arguments{
@@ -25,7 +25,7 @@ add_logo_ga(
\item{margin_param}{a number giving the adjustment up or down to help manually align logo and captions}
\item{font_scale}{Numeric. Multiplicative scaling factor applied to text
sizes before composing. Default `1.1`. See [add_logo()] for details.}
sizes before composing. Default `1`. See [add_logo()] for details.}
}
\value{
a grid object