Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: graph hbar blabel and text option Stata 11
From
"Kaulisch, Marc" <[email protected]>
To
<[email protected]>
Subject
st: graph hbar blabel and text option Stata 11
Date
Mon, 24 Oct 2011 15:33:15 +0200
Hi Statalisters,
I am constructing a (simple) graph hbar (mean)... Graph with four yvars
and a one over-var. While polishing the graph some questions appear:
1. Is it possible to add a (useful) blabel command?
I use the option
. blabel(bar, pos(center) format(%2.1fc) color(white))
But now I want to add a total outside the bar. Is this possible?
Adding blabel(total) changes the values of the barlabels into cumulative
sums which is not what I want...
2. Would it be possible to change the color of specific barlabels?
Giving my scheme some bars are dark and some light. Using white is great
for the dark ones but not for the light ones...
3. I would like to add text to each bar at the end of x-axis. Which are
the xaxis coordinates for the bars?
I see that text(13 1) places the text at the bottom and text(13 100) at
the top, but is there a way to identify the right place for each bar
automatically? Or is this a trial and error process?
Best regards,
Marc Kaulisch
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/