I am trying to use the user command Tabplot (as recommended by Nick Cox) to created histograms of my pre and post count variables (counts of Use of force incidents) by group (control and experimental). I created to different set of charts using the tabplot command and the I combined the two graphs. Below you can see the actual syntax I used.
However, these graphs do not look good por presentation. I would like to have the pre value next to the post value for each group. That is, in the control group, the bar of the pre 3 should be next to post value 3, ext. I would then have two charts one for pre and one for post examinations. My aim is to show the difference between pre and post examinations. Also, I would like to include:
1. The Y axis
2. Make the X values smaller
3. Have one color for pre and one for post
I tried to do this and look for resources but I couldn't figure it out.
Thank you!
Marvin
Code:
tabplot PreUOF, xasis percent yasis by(Group)nodraw name(PreHist, replace) tabplot PostUOF, xasis percent yasis by(Group)nodraw name(PostHist, replace) graph combine PreHist PostHist, col(1)
1. The Y axis
2. Make the X values smaller
3. Have one color for pre and one for post
I tried to do this and look for resources but I couldn't figure it out.
Thank you!
Marvin
Comment