Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Overlapping variable labels


From   Raphael Fraser <[email protected]>
To   [email protected]
Subject   st: Overlapping variable labels
Date   Fri, 5 Aug 2005 11:35:27 -0500

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




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index