Briefly, if https://github.com/tidyverse/ggplot2/pull/5488 gets merged, guides will always have 5 positions in the gtable for left, right, top, bottom and inside positions. This eliminates the need for {patchwork} to work in missing rows/columns of the gtable. Collecting guides from a gtable on the other hand, requires grabbing the guides from 5 guide-boxes instead of 1.
Some visual tests changed at the svg level due to some slight rounding changes, but for humans they look exactly the same. This isn't a consequence of this PR, but of changes in the dev version of ggplot2. Hence, I didn't include those snapshot changes.
This PR updates patchwork to deal with https://github.com/tidyverse/ggplot2/pull/5488.
Briefly, if https://github.com/tidyverse/ggplot2/pull/5488 gets merged, guides will always have 5 positions in the gtable for left, right, top, bottom and inside positions. This eliminates the need for {patchwork} to work in missing rows/columns of the gtable. Collecting guides from a gtable on the other hand, requires grabbing the guides from 5 guide-boxes instead of 1.
Some visual tests changed at the svg level due to some slight rounding changes, but for humans they look exactly the same. This isn't a consequence of this PR, but of changes in the dev version of ggplot2. Hence, I didn't include those snapshot changes.