Good questions, Nick. I think my main problem with generating a nice looking clustered bar chart in Stata is that the basic command generated via the GUI does not produce the output I expected, and would like to see. E.g., here is a command I just generated via the GUI:
Code:
clear * sysuse auto graph bar (count), over(foreign) over(rep78) ytitle(Frequency)
- Colour-coding for domestic vs foreign
- Small/no space between Domestic and Foreign bars within each level of rep78
- Clear separation between the levels of rep78
I wonder if the approach I used in #4 of that other thread might not be easier for newbies and users coming to Stata from SPSS. Since posting that example, I remembered the -separate- command, so might now do it a bit differently as follows:
Code:
separate foreign, by(foreign) * Rename the variables to improve labeling on the graph rename (foreign0 foreign1) (Domestic Foreign) * Basic version with default colours etc. graph bar (count) Domestic Foreign, over(rep78) /// title(# of Domestic v Foreign cars by Repair Record) /// ytitle(Frequency) ylab(0(5)30,grid)
Why might StataCorp be motivated to do this when there already so many bar commands for users to choose from?
Cheers,
Bruce
Leave a comment: