您可以遵循相同的原则,然后添加另一个geom_hline()
set color="white"
,如下所示:
ggplot(mpg, aes(displ, cty)) +
geom_point() +
facet_grid(. ~ drv) +
theme(strip.background = element_blank()) +
geom_hline(aes(yintercept = Inf), color = "white", size=4) + # white space
geom_hline(aes(yintercept = Inf, color = drv), size = 2)
玩size
以增加“间距”。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句