Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down at the end of May, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Kaulisch, Marc" <kaulisch@forschungsinfo.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: AW: RE: graph hbar blabel and text option Stata 11 |

Date |
Mon, 24 Oct 2011 16:12:35 +0200 |

Nick, thanks for your advise to look at twoway bar. I certainly will try it. I thought giving the whole graph bar command would not add much to the questions asked because they could distract from the essence of my problem. Additionally, I am not so much into the sysuse or webuse datasets that I could create a reproducible example so easily... Excuse me. Marc -----Ursprüngliche Nachricht----- Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Nick Cox Gesendet: Montag, 24. Oktober 2011 15:44 An: 'statalist@hsphsun2.harvard.edu' Betreff: st: RE: graph hbar blabel and text option Stata 11 Without getting into specifics, this strikes me as very much a problem in which you should reduce your dataset to what needs to be plotted (-collapse- yields a dataset of means directly) and then use -graph twoway bar-. You could make some progress with -graph hbar- in solving these problems but I suspect not all. But specifically with -blabel()- the options are precisely what is documented. The scope for subverting them is about zero. The -twoway- way offers much greater control. I note the absence of complete documentation of exactly what you typed. This never does any harm. Nick n.j.cox@durham.ac.uk Kaulisch, Marc 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? * * 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/ * * 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/

- Prev by Date:
**Re: st: R: variable not found?** - Next by Date:
**st: Matched pair and pannel data** - Previous by thread:
**st: graph hbar blabel and text option Stata 11** - Next by thread:
**st: FE over two columns** - Index(es):