Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: labeling bars with twoway bar and rcap


From   Daniel Becker <[email protected]>
To   [email protected]
Subject   Re: st: labeling bars with twoway bar and rcap
Date   Wed, 10 Jan 2007 14:00:36 +0100

Thanks Scott, Roger,

both suggestions are very helpful. The eclplot package does more or less exactly what I want.

Thanks!

Daniel


Am 09.01.2007 um 20:06 schrieb Daniel Becker:


Dear statalist,

the following command gives me the plot you can see here:
http://www.wiwi.uni-rostock.de/~wsf8545/test.png


graph twoway
(bar meanwrite Z_faks if Z_faks==0, horizontal)
(bar meanwrite Z_faks if Z_faks==1, horizontal)
(bar meanwrite Z_faks if Z_faks==2, horizontal)
(bar meanwrite Z_faks if Z_faks==3, horizontal)
(rcap hiwrite lowrite Z_faks, lwidth(thick) lcolor(black) horizontal),
legend(order(1 "Fakult 1" 2 "Fakult 2" 3 "Fakult 3" 4 "Fakult 4" ) cols(1) width(100));

Is it possible to label the bars? Such that the upper yellow bar has a 3.8 somewhere, the lower blue one a 3.5 etc.

I tried to use blabel(), searched the web, but to no avail.

Thanks for your help.

Daniel

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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