Hello, I have some problems about strip.switch.pad.grid in ggplot2. I use strip.switch.pad.grid = unit(2, "cm") , but it doesn't seem to be working. The following is figure p1.
library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.1.3
p <- ggplot(mpg, aes(displ, cty)) + geom_point()
p1 <- p +
facet_grid(vars(drv), vars(cyl)) +
theme(strip.switch.pad.grid = unit(2, "cm"), strip.placement = "outside")
# print(p1)