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

From |
"Scott Merryman" <scott.merryman@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Bar graph: problem with category labels |

Date |
Wed, 25 Jul 2007 13:07:36 -0500 |

-graph hbar mpg trunk, over(rep78, relabel(1 `" " "1"' 2 `" " "2"' 3 `""Two" "lines""')) name(g4,replace)- Scott On 7/25/07, Marcello Pagano <pagano@hsph.harvard.edu> wrote:

Friedrich Huebler wrote: -------------------- When a two-line category label is added to a -graph hbar, over()- horizontal bar graph, the labels above the two-line label are no longer centered next to the bars. This happens in Stata versions 8, 9 and 10. . sysuse auto . graph hbar mpg trunk, over(rep78) . graph hbar mpg trunk, over(rep78, relabel(3 "One line")) . graph hbar mpg trunk, over(rep78, relabel(3 `""Two" "lines""')) . graph hbar mpg trunk turn, over(rep78, relabel(3 `""Two" "lines""')) In the first two graphs all category labels are centered next to the bars. In the third and fourth graph the labels for the first two categories are shifted up along the vertical axis. How can all category labels be centered next to the bars? Friedrich

* * 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/

**Follow-Ups**:**Re: st: Bar graph: problem with category labels***From:*"Scott Merryman" <scott.merryman@gmail.com>

**References**:**st: Bar graph: problem with category labels***From:*Marcello Pagano <pagano@hsph.harvard.edu>

- Prev by Date:
**st: RE: Question on xthtaylor** - Next by Date:
**RE: st: Suggestions for Second Edition of A Visual Guide to Stata Graphics** - Previous by thread:
**st: Bar graph: problem with category labels** - Next by thread:
**Re: st: Bar graph: problem with category labels** - Index(es):

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