本文介绍了平面标签字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法改变ggplot中的facet标签的字体大小?我谷歌了一下,发现那个问题还没有在哈德利的名单上。我想知道是否有解决方法或有关此问题的任何消息。
Thx用于分享任何新闻...
开始: R> qplot(hwy,cty,data = mpg)+
facet_grid(。〜制造商)+
主题(strip.text.x = element_text(size = 8,color =orange,angle = 90) )
p>
is there a way to change to font size of facet labels in ggplot? I google a bit and found that that issue was yet on Hadley's to do list. I wonder if there's a workaround or any news on this issue.
Thx for sharing any news…
解决方案
This should get you started:
R> qplot(hwy, cty, data = mpg) +
facet_grid(. ~ manufacturer) +
theme(strip.text.x = element_text(size = 8, colour = "orange", angle = 90))
See also this question: How can I manipulate the strip text of facet plots in ggplot2?
这篇关于平面标签字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!