这个问题在这里已经有了答案:





How can I manipulate the strip text of facet_grid plots?

(3 个回答)


2年前关闭。




有没有办法改变 ggplot 中的刻面标签的字体大小?我用谷歌搜索,发现这个问题还在哈德利的待办事项 list 上。我想知道是否有解决方法或有关此问题的任何消息?

最佳答案

这应该让你开始:

R> qplot(hwy, cty, data = mpg) +
       facet_grid(. ~ manufacturer) +
       theme(strip.text.x = element_text(size = 8, colour = "orange", angle = 90))

另见这个问题:How can I manipulate the strip text of facet plots in ggplot2?

关于r - 刻面标签字体大小,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3290330/

10-14 18:41
查看更多