Closed bctclc closed 8 years ago
It looks like your y-axis variable may be entered as a factor. Try making sure it is numeric. Also, you can round
the variable before plotting. Another thing to try would be to use the ggplot2 scale_y_continuous
function which allows you to specify breaks and tick labels.
Regarding the second one, perhaps try turning the grouping variable into a factor with levels in order that you want the bars to be.
Both worked out. Thank you very much!
Great!
Hi everyone!
I tried to plot grouped bar char using ggplot2 and this is my code:
It worked out ok, but I want to make two changes, but I'm sure what to do. 1) make the y axis tidier by imposing the interval of 0.1 2) unorder the three bars within each group.
Thank you!