ITADN

New `tidyplots::split_plot()`in 0.4.0 breaks `ggalign::align_plots()`

#92Openjbengler 创建于 2026-01-14
discuss
J
jbenglercommented
Dear @Yunuuuu in my last tidyplots release 0.4.0 I updated `tidyplots::split_plot()` and thereby broke the `ggalign::align_plots()` functionality. ``` library(tidyplots) # use 0.4.0 library(ggalign) t1 <- tidyplot(study, group, score) |> add_boxplot() |> adjust_size(30, 30) t2 <- tidyplot(study, group, score) |> add_boxplot() |> adjust_size(30, 30) |> add(facet_wrap(vars(dose))) t3 <- tidyplot(study, group, score) |> add_boxplot() |> adjust_size(30, 30) |> split_plot(dose) align_plots(t1, t2) # works ``` <img width="445" height="188" alt="Image" src="https://github.com/user-attachments/assets/c21bb973-ccb0-498a-a9ab-cba5020505d1" /> ``` align_plots(t1, t3) # broken ``` <img width="432" height="174" alt="Image" src="https://github.com/user-attachments/assets/da856243-23d2-486e-a182-db477430d507" /> I suspect that the issue is caused by my new custom facet implementation: https://github.com/jbengler/tidyplots/blob/master/R/facet-wrap-ext.R https://github.com/jbengler/tidyplots/blob/master/R/facet-grid-ext.R and https://github.com/jbengler/tidyplots/blob/master/R/facet-ext.R Do you have any clue what is going on and how I could fix it? Thanks a lot! Broder
5 条评论