我希望顶部的灰色条更宽些,即将其边缘与字母(strip.text - A、B、C等)的顶部和底部稍微拉开一点。我原以为行高会起到填充作用,但实际上并没有。
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))