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

Re: st: Left-justify labels for categories, using -graph hbar- ?

From   David Airey <david.airey@Vanderbilt.Edu>
Subject   Re: st: Left-justify labels for categories, using -graph hbar- ?
Date   Mon, 16 Feb 2009 14:10:10 -0600


In my copy of Stata 10 for OS X (up to date), when I use the - position- option for left of right under the -advanced- dialog, left justification moves the y axis line to between division and region in a way that looks like a bug. I don't like that the graph editor allows options that are not available to the command line (or I don't know how to do either).

On Feb 16, 2009, at 1:28 PM, Friedrich Huebler wrote:

In Stata 10 the labels can be left-justified with the graph editor.


On Mon, Feb 16, 2009 at 2:16 PM, David Airey < > wrote:

Only text boxes seem to have justification styles.


On Feb 15, 2009, at 5:56 PM, Hiroshi Maeda wrote:

Dear Statalist members,

I am (still) using Stata 9.2 and Windows XP.

Does anyone know how to left justify labels of categories for which bars
are drawn, using -graph hbar- ?

I would like to draw a horizontal bar graph that looks like the one shown
in the Graphics Reference Manual (Release 9, p. 40). The following
command, which I copy from it, produces the graph:

sysuse citytemp, clear
graph hbar (mean)tempjan, over(division) over(region) nofill

The resultant graph organizes horizontal bars first by region (N.E., N.
Central, ...) and then by division (N. Eng., Mid Atl., ...).

Here is my question concerning how the labels for regions and divisions are displayed: Is there a way to have Stat show the labels left- justified
instead of right-justified?

That is, I would like to have Stata show the labels in this way:

  N.E.        N. Eng.
              Mid Atl.

  N. Central  E.N.C.

  South       S. Atl.

  West        Mountain

Thank you.

Hiroshi Maeda

Hiroshi Maeda
University of Illinois at Chicago
*   For searches and help try:

*   For searches and help try:

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