Description
Hi everyone,
I recently found the need to turn the clipping off, but I can't easily do that without either (1) writing a new facet function that builds strips as I want or (2) edit the strips in the gtable.
I found a similar question here on so.
A while back, there was a move to make clipping more configurable (#2536), but this has not been extended to strips. Also there was an issue with strip clipping (#2772), which turned it on for all strips; however my intention would be to make this configurable from e.g. the theme.
One reason besides turning off label clipping is to make the strips flush with either axis lines, panel backgrounds and panel borders (the latter two when the coord clipping is turned off).
An example of the behaviour I love to see configurable is below. The intersection between the strip and the axis line is not ideal, and the size
parameter appears halved for the strip.
library(ggplot2)
ggplot(mpg, aes(displ, hwy)) +
geom_point() +
facet_wrap(~ drv) +
theme(
strip.background = element_rect(colour = "red", size = 5),
axis.line.y.left = element_line(colour = "blue", size = 5)
)
Created on 2020-07-04 by the reprex package (v0.3.0)
Thanks for considering!