fix(logo): reserve a logo band in add_logo_ga() instead of a negative margin (#28)
R-CMD-check / R CMD check (push) Successful in 4m38s

add_logo_ga() now gives the logo its own band (logo_height inches) below the
plots, as add_logo() does, and leaves plot margins alone unless margin_param
is given.

Closes #28

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Sonnet 5.5 committed 2026-10-15 15:39:43 -04:00
1 parent a2a0fce265
commit f3ec052144
4 files changed
+53 -18

No files matched your search

+7 -2
View File
@@ -10,7 +10,8 @@ add_logo_ga(
nrow = 1,
widths = NULL,
margin_param = NULL,
font_scale = 1
font_scale = 1,
logo_height = 0.5
)
}
\arguments{
@@ -22,10 +23,14 @@ add_logo_ga(
\item{widths}{an optional vector the same length as plot_list with the widths for each plot}
\item{margin_param}{a number giving the adjustment up or down to help manually align logo and captions}
\item{margin_param}{Optional number. Replaces the bottom plot margin (in points).
`NULL` (default) leaves plot margins alone.}
\item{font_scale}{Numeric. Multiplicative scaling factor applied to text
sizes before composing. Default `1`. See [add_logo()] for details.}
\item{logo_height}{Numeric. Height in inches of the band reserved for the
logo below the plots. Default `0.5`.}
}
\value{
a grid object