You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plot_annotation titles are removed when assembling or wrapping plots #209
I've found that titles added to a plot assembly are removed when trying to combine multiple assemblies into a larger figure.
I've extended the example in the assembly documentation page to demonstrate the issue. I'm able to add "Row1" and "Row2" to assemblies of the first and second plots and third and fourth plots, but these titles are removed when combining the assemblies with the stack operator (/) or wrap_plots().
I think this is a bug and not intended behavior, as using wrap_plots() with ncol=1 has the expected behavior of treating the sub-assemblies as individual plots, but please let me know if this is intended, or if I can add any other info.
Activity
thomasp85 commentedon Oct 2, 2020
This is a known limitation and is documented. At some point in the future I'll think about how to get around it
msto commentedon Oct 2, 2020
Totally missed that note in the annotation docs, sorry. Thanks
psychelzh commentedon Apr 28, 2021
Is there any workaround for this?
abanihas commentedon Jun 22, 2021
@psychelzh @msto Same problem. Temporary solution in #145
trizniak commentedon May 30, 2026
I wrapped the plots in the list in
patchwork::wrap_elementsbefore the list goes intopatchwork::wrap_plots