【发布时间】:2012-04-21 06:21:23
【问题描述】:
我有以下使用 ggplot2 生成的图表
我有 finalPlot 作为 ggplot 对象。添加我使用的标签
finalPlot + stat_bin() + scale_x_continuous('Solution Cost') + scale_y_continuous('Number of Solutions')`
如何更改 y 轴标签的方向以使其显示为水平,并在可能的情况下跨越两条线
Number of
Solutions
【问题讨论】:
-
据我所知,下面的答案现在已经过时了,因为
'opts'已被弃用(现在是'theme'),theme_text()(对于'element_text')也是如此。