Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如问题所述,是否可以更改比例尺文本的角度ggplot?
ggplot
我的意思是,我希望将 x 轴上使用的标签旋转 90 度。
您显然可以使用angle图例,但它似乎不适用于比例。
angle
任何的想法 ?
您可以使用:
+ opts(axis.text.x=theme_text(angle=90))
从 0.9.2 版开始,opts已被替换为theme:
opts
theme
+ theme(axis.text.x = element_text(angle = 90))