I have the following graph that I generated using ggplot2
I had finalPlot
as the ggplot object. To add labels I used
finalPlot + stat_bin() + scale_x_continuous('Solution Cost') + scale_y_continuous('Number of Solutions')`
How can I change the orientation of the y axis label to make it appear horizontal and if possible span it across two lines like
Number of
Solutions
Best Answer
The syntax has changed in recent versions of ggplot2; if you try the above answer, you'll get
These days you should use