我希望顶部的灰色条更宽,例如,它的边缘离字母的顶部和底部稍远一点(strip.text - A、B、C 等)。我原以为 lineheight 会充当填充,但事实并非如此。
ggplot(diamonds, aes(carat, price, fill = ..density..)) +
xlim(0, 2) + stat_binhex(na.rm = TRUE)+
facet_wrap(~ color) +
theme(strip.text = element_text(lineheight=20))