- all_plots
A list of ggplot objects to be combined. Each plot should
ideally include tick labels on both x and y axes to allow the function to
optimize the layout effectively.
- title
A ggplot layer or character string specifying the title of the
combined figure. If supplied as a string, the function dynamically adjusts
its size and placement. Optional.
- xlabel
A ggplot layer or character string specifying the label for the
x-axis of the combined figure. Optional.
- ylabel
A ggplot layer or character string specifying the label for the
y-axis of the combined figure. Optional.
- legend
A ggplot legend layer to be added to the combined figure. Optional.
- ncol
Number of columns in the combined figure grid. If not supplied,
the function determines this based on the number of plots.
- nrow
Number of rows in the combined figure grid. If not supplied,
the function determines this based on the number of plots.
- xlabel2
A secondary x-axis label layer or character string. Optional.
- ylabel2
A secondary y-axis label layer or character string. Optional.
- tickRatio
A scaling factor for tick label size. By default, this is
adjusted dynamically based on the number of rows and columns in the grid.
Larger values increase tick label size. Optional.
- panel_scale
A numeric value between 0 and 1 that scales the individual
panels to reduce empty space within and around each panel. Default is `0.9`.
- wRatio
A scaling factor for the width of the first column relative to
other columns. By default, this is computed based on the input plots. Users
can override it with a numeric value. Optional.
- hRatio
A scaling factor for the height of the last row relative to other
rows. By default, this is computed based on the input plots. Users can override
it with a numeric value. Optional.
- hmargin
Vertical margin between subplots. Positive values increase the
spacing, while negative values reduce it. Default is `0`.
- wmargin
Horizontal margin between subplots. Positive values increase the
spacing, while negative values reduce it. Default is `0`.
- remove_ticks
Specifies whether to remove ticks from the inner panels:
`"some"` (default) removes ticks only from inner plots, `"all"` removes ticks
from all plots, and `"none"` keeps all ticks.
- wRatio2
A scaling factor for the width of the last column relative to
other columns. By default, this is computed based on the input plots. Optional.
- hRatio2
A scaling factor for the height of the first row relative to
other rows. By default, this is computed based on the input plots. Optional.
- labelRatio
A scaling factor for the text size of titles, axis labels,
and secondary labels when provided as character strings. Default is `1`.
Larger values increase text size proportionally.