Statalist


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

st: RE: wrapping axis labels in -graph hbar-


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: wrapping axis labels in -graph hbar-
Date   Tue, 19 Jan 2010 22:39:45 +0100

<>

This thread may be helpful:
http://www.stata.com/statalist/archive/2008-07/msg00932.html



HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jeph Herrin
Sent: Dienstag, 19. Januar 2010 22:27
To: [email protected]
Subject: st: wrapping axis labels in -graph hbar-


I'm generating a large number of graphs, all of which are
horizontal bar graphs:

   graph hbar var1 var2, over(group)

My problem is that several -group- category labels are quite
long, so that the figure is compressed to the right to make
room.

Ideally (that is, rather than chopping down and/or footnoting)
there would be a way to wrap these labels into two lines. Since
each -group- value has two bars, there is plenty of space for
two lines of text; however, I cannot find a way to wrap the
text, even if I manually break it up into fragments. Any
ideas?

By the way, I have tried shrinking the labels:

   graph hbar var1 var2, over(group, label(labsize(small)))

but this doesn't solve the problem (and doesn't look very good).

thanks,
Jeph



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



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