I really like the patchwork package, alignment of multiple plots is often better and easier to realize than in other packages (cowplot/gridextra).
However, one thing I cannot solve: Is it possible to ignore x-axis alignment in a patchwork, and only align all other elements? Or to adjust this x-axis alignment afterwords in the patchwork manually? See attached figure: I want the x-axis title from patch B and C (Petal.Length) closer to the x-axis, if possible.
Code that produced the image:
library(ggplot2)
library(patchwork)
plot.1 <- ggplot(iris, aes(x = Species, y = Petal.Width)) +
geom_boxplot() +
scale_x_discrete(labels = c("A very\nvery\nlong\nlabel", "","")) +
labs(x = element_blank())
plot.2 <- ggplot(iris, aes(x = Petal.Length, y = Petal.Width)) +
geom_point()
(plot.1 |plot.2)/(plot.2|plot.1) +
plot_annotation(tag_levels = "A")


