The image shows a graph which should allow visual comparison of the percentage of success between 3 treatments. I used the menu system and have ended up with this graph although I wish to have the bars side by side in one frame. However, as soon as I change anything, I end up with unstacked bars and/or the y axis changes to show the number of observations instead of the percentage. How can I get the three stacks of bars amounting to 100 % to be shown side by side in one graph?
My current code is:
graph bar, over(kolRes) asyvars stack by(, title("Success, by Treatment")) ytitle("Percentage") legend(order(1 "Success" 2 "Failure" 3 "Unknown")) by(Treatment_type)
Bonus question: How do I get rid of the footnote about "Graphs by.."? I have tried to make its opacity 0%, but it still comes through in the .wmf file I use for export to PowerPoint.
Thanks, Hans
Comment