Dear All
When ever you plot a bar graph stata uses the variable label of the
"over( variable)" to label the horizontal axis. My problem is the
labels overlap on the horizontal axis and looks a bit messy. How can
this be corrected?
My code and graph is attached. Thank you in advance.
#d;
graph bar (count) p c, over(response)
bargap(-20) bar(1,bcolor(red)) bar(2,bcolor(green)) bar(3,bcolor(gold))
blabel(bar, format(%4.0f) position(outside))
legend(label(1 "Patients") label(2 "Controls") )
ytitle("Frequency") yla(,angle(0));
#d;
Raphael
Attachment:
graph.doc
Description: MS-Word document