我希望頂部的灰色條更寬一些,因爲它的邊緣距字母的頂部和底部稍遠(strip.text - A,B,C等)。我原以爲lineheight會充當填充,但事實並非如此。有沒有辦法增加strip.text欄的高度?
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))
增加文本大小本身並不令人滿意ÿ? – alexwhan
@alexwhan,增加文字大小也會增加條紋大小,但它不會改變兩個 –
@RicardoSaporta的*比率*,我同意 - 我喜歡你的解決方案 – alexwhan